Mailinglist Archive: opensuse-buildservice (166 mails)

< Previous Next >
Re: [opensuse-buildservice] privat obs publisher problem
  • From: Marcus Hüwe <suse-tux@xxxxxx>
  • Date: Sun, 4 May 2014 02:24:29 +0200
  • Message-id: <20140504002428.GB2315@linux>
On 2014-05-03 22:33:23 +0200, Christian wrote:

<SNIP>

Worker 0: self._populatePrco()
Worker 0: File "/usr/lib64/python2.6/site-packages/yum/packages.py",
line 1431, in _populateP
rco
Worker 0: (name, flag, vers) = self._filter_deps(name, hdr[oldtagf],
hdr[oldtagv], andmask,
resmask)
Worker 0: File "/usr/lib64/python2.6/site-packages/yum/packages.py",
line 1385, in _filter_de
ps
Worker 0: for (n, f, v) in zip(name, flag, vers):
Worker 0: TypeError: zip argument #2 must support iteration

This is probably related to SLE_11_SP3's rpm-python package (if there is
for instance only one ENHANCES entry, "flag" is an integer instead of
a list).
As a workaround, you can apply the attached patch for yum.


Marcus
--- yum/packages.py.orig 2014-05-04 01:57:32.768353225 +0200
+++ yum/packages.py 2014-05-04 02:01:56.462353207 +0200
@@ -28,6 +28,7 @@
import fnmatch
import stat
import warnings
+import collections
from subprocess import Popen, PIPE
from rpmUtils import RpmUtilsError
import rpmUtils.miscutils
@@ -1382,6 +1383,8 @@
newname = []
newflag = []
newvers = []
+ if not isinstance(flag, collections.Iterable):
+ flag = [flag]
for (n, f, v) in zip(name, flag, vers):
if f & andmask == resmask:
newname.append(n)
< Previous Next >
Follow Ups
References