blob: 59fffc10ede1e2d9f65bf1aa5e4dcf32f377a349 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index b1875f6..85f2a3d 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
@@ -400,7 +400,9 @@ class MetaDataGenerator:
if self.conf.update:
self._setup_old_metadata_lookup()
# rpms we're going to be dealing with
- if self.conf.pkglist:
+ if isinstance(self.conf.pkglist, MetaSack):
+ packages = self.conf.pkglist
+ elif self.conf.pkglist:
packages = []
for pkg in self.conf.pkglist:
if '://' in pkg: # remote
|