File createrepo-0.10.3-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
@@ -407,7 +407,8 @@ class MetaDataGenerator:
         if 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)