]> git.ipfire.org Git - pakfire.git/commitdiff
Don't skip packages of other architectures.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Dec 2011 00:00:00 +0000 (01:00 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Dec 2011 15:59:43 +0000 (16:59 +0100)
They might be compatible.

python/pakfire/repository/index.py

index 86dbe2ff15c39c2f3fa83b2b7a07c3c18d4ddf5c..de892f8050cbb1017988abc27a40b13f163a401c 100644 (file)
@@ -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)