diff --git a/britney.py b/britney.py index 3c9d10c..17f2d83 100755 --- a/britney.py +++ b/britney.py @@ -2308,9 +2308,9 @@ class Britney: if pkg[0] != '-' and pkg_name in sources[suite]: for p in sources[suite][pkg_name][BINARIES]: binary, arch = p.split("/") - if "/" in pkg and arch != pkg[pkg.find("/")+1:]: continue - del binaries[arch][0][binary] - self.systems[arch].remove_binary(binary) + if '/' not in pkg or pkg.endswith("/%s" % (arch)) or pkg.endswith("/%s_tpu" % (arch)): + del binaries[arch][0][binary] + self.systems[arch].remove_binary(binary) # undo the changes (binaries) for p in undo['binaries'].keys():