|
|
bb45c0 |
commit 0df9058960d3fa24aa7695a4a14524127cc0e9be
|
|
|
bb45c0 |
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
|
|
|
bb45c0 |
Date: Tue Apr 21 08:44:52 2015 +0200
|
|
|
bb45c0 |
|
|
|
bb45c0 |
Fix tsInfo.conditionals in deselect() when the package is not yet in the transaction BZ#1168385
|
|
|
bb45c0 |
|
|
|
bb45c0 |
diff --git a/AUTHORS b/AUTHORS
|
|
|
bb45c0 |
index 71845e1..350e136 100644
|
|
|
bb45c0 |
--- a/AUTHORS
|
|
|
bb45c0 |
+++ b/AUTHORS
|
|
|
bb45c0 |
@@ -24,6 +24,7 @@ YUM AUTHORS
|
|
|
bb45c0 |
James Antill
|
|
|
bb45c0 |
Panu Matilainen
|
|
|
bb45c0 |
Tambet Ingo
|
|
|
bb45c0 |
+ Valentina Mukhamedzhanova
|
|
|
bb45c0 |
|
|
|
bb45c0 |
|
|
|
bb45c0 |
Original Yup people:
|
|
|
bb45c0 |
diff --git a/yum/transactioninfo.py b/yum/transactioninfo.py
|
|
|
bb45c0 |
index 9ce5025..ec2c7cb 100644
|
|
|
bb45c0 |
--- a/yum/transactioninfo.py
|
|
|
bb45c0 |
+++ b/yum/transactioninfo.py
|
|
|
bb45c0 |
@@ -237,6 +237,7 @@ class TransactionData:
|
|
|
bb45c0 |
if not txmbrs:
|
|
|
bb45c0 |
if self._inSack is not None:
|
|
|
bb45c0 |
pkgs = self._inSack.returnPackages(patterns=[pattern])
|
|
|
bb45c0 |
+ if pkgs: pass
|
|
|
bb45c0 |
elif self.pkgSack is None:
|
|
|
bb45c0 |
pkgs = []
|
|
|
bb45c0 |
else:
|
|
|
bb45c0 |
commit c8b564968286ffccbd46beeb40c95d5e1c74a2aa
|
|
|
bb45c0 |
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
|
|
|
bb45c0 |
Date: Mon Jul 13 13:45:45 2015 +0200
|
|
|
bb45c0 |
|
|
|
bb45c0 |
Fix UnboundLocalError in deselect()
|
|
|
bb45c0 |
|
|
|
bb45c0 |
diff --git a/yum/transactioninfo.py b/yum/transactioninfo.py
|
|
|
bb45c0 |
index ec2c7cb..8d47caa 100644
|
|
|
bb45c0 |
--- a/yum/transactioninfo.py
|
|
|
bb45c0 |
+++ b/yum/transactioninfo.py
|
|
|
bb45c0 |
@@ -235,13 +235,13 @@ class TransactionData:
|
|
|
bb45c0 |
txmbrs = self.matchNaevr(na[0], na[1])
|
|
|
bb45c0 |
|
|
|
bb45c0 |
if not txmbrs:
|
|
|
bb45c0 |
+ pkgs = []
|
|
|
bb45c0 |
if self._inSack is not None:
|
|
|
bb45c0 |
pkgs = self._inSack.returnPackages(patterns=[pattern])
|
|
|
bb45c0 |
- if pkgs: pass
|
|
|
bb45c0 |
- elif self.pkgSack is None:
|
|
|
bb45c0 |
- pkgs = []
|
|
|
bb45c0 |
- else:
|
|
|
bb45c0 |
+
|
|
|
bb45c0 |
+ if not pkgs and self.pkgSack is not None:
|
|
|
bb45c0 |
pkgs = self.pkgSack.returnPackages(patterns=[pattern])
|
|
|
bb45c0 |
+
|
|
|
bb45c0 |
if not pkgs:
|
|
|
bb45c0 |
pkgs = self.rpmdb.returnPackages(patterns=[pattern])
|
|
|
bb45c0 |
|