File createrepo-fix_MetaDataGenerator.patch of Package createrepo

Index: createrepo-0.10.3/createrepo/__init__.py
===================================================================
--- createrepo-0.10.3.orig/createrepo/__init__.py
+++ createrepo-0.10.3/createrepo/__init__.py
@@ -412,7 +412,8 @@
         elif self.conf.pkglist:
             packages = []
             for pkg in self.conf.pkglist:
-                if '://' in pkg: # remote
+                if isinstance(pkg, YumAvailablePackage) or '://' in pkg:
+                    # either a package object or a remote file
                     packages.append(pkg)
                     continue
                 path = os.path.join(self.conf.basedir, self.conf.directory, pkg)
openSUSE Build Service is sponsored by