diff options
author | Richard Hughes <richard@hughsie.com> | 2014-07-16 17:41:25 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-07-16 17:41:25 +0100 |
commit | 28f282d01253ba6a28077c75602d468a78d171cd (patch) | |
tree | c2a66dce8d8a29158700900c2d89dd86ece79ffe /contrib | |
parent | a9c2e06700d260bacec6739ad8983733093f4c0d (diff) | |
download | appstream-glib-28f282d01253ba6a28077c75602d468a78d171cd.tar.gz |
trivial: Strip the Fedora arch-specific requires
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/packages/fedora-download-cache.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/packages/fedora-download-cache.py b/contrib/packages/fedora-download-cache.py index 7f9f311..413b693 100755 --- a/contrib/packages/fedora-download-cache.py +++ b/contrib/packages/fedora-download-cache.py @@ -214,6 +214,10 @@ def update(): print("INFO: Checking for %s..." % pkg.name) ensure_pkg_exists(yb, existing, pkg) for require in pkg.strong_requires_names: + # remove helpful package suffixes + idx = require.find('(x86-64)') + if idx > 0: + require = require[0:idx] if downloaded.has_key(require): continue dep = pkg_from_name(available_packages, require) |