From: Michael Tremer Date: Thu, 8 Dec 2011 00:00:00 +0000 (+0100) Subject: Don't skip packages of other architectures. X-Git-Tag: 0.9.19~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a0b8a845e370e50c3eae3167bf7a0523426755e;p=pakfire.git Don't skip packages of other architectures. They might be compatible. --- diff --git a/python/pakfire/repository/index.py b/python/pakfire/repository/index.py index 86dbe2ff1..de892f805 100644 --- a/python/pakfire/repository/index.py +++ b/python/pakfire/repository/index.py @@ -384,16 +384,7 @@ class IndexDir(Index): # Find all packages with the given type and skip those of # the other type. - if isinstance(package, self.pkg_type): - # Check for binary packages if the architecture matches. - if isinstance(package, packages.BinaryPackage) and \ - not package.arch in (self.repo.arch, "noarch"): - log.warning("Skipped package with wrong architecture: %s (%s)" \ - % (package.filename, package.arch)) - continue - - # Skip all source packages. - else: + if not isinstance(package, self.pkg_type): continue self.add_package(package)