summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGui Chen <gui.chen@intel.com>2014-06-08 22:33:48 -0400
committerGui Chen <gui.chen@intel.com>2014-06-10 05:19:22 +0300
commit9e5b7b3bfdaade6bc6141d3ad30487098877c58f (patch)
tree2625cd05d5b4cb1854d3210573c648a19782e506
parent77817fec14ce2c5b194ff5c5e83308f3a4a5c335 (diff)
downloadmic-9e5b7b3bfdaade6bc6141d3ad30487098877c58f.tar.gz
mic-9e5b7b3bfdaade6bc6141d3ad30487098877c58f.tar.bz2
mic-9e5b7b3bfdaade6bc6141d3ad30487098877c58f.zip
fix Package_constPtr AttributeError: status
actually the modified 'item' should be PoolItem, which has 'status', instead of Package Change-Id: Ib29bc770281a5d32773a2165c65cc6c4431cb51b Signed-off-by: Gui Chen <gui.chen@intel.com>
-rw-r--r--plugins/backend/zypppkgmgr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py
index 1c5f867..e1c7641 100644
--- a/plugins/backend/zypppkgmgr.py
+++ b/plugins/backend/zypppkgmgr.py
@@ -236,7 +236,7 @@ class Zypp(BackendPlugin):
obspkg = self.whatObsolete(item)
if arch:
if arch == str(item.arch()):
- item.status().setToBeInstalled (zypp.ResStatus.USER)
+ pitem.status().setToBeInstalled (zypp.ResStatus.USER)
else:
markPoolItem(obspkg, pitem)
if not ispattern: