X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fcheck_proposed_updates.py;h=16a9876348d24f78b80179950e338915b58057c5;hb=b612f3da207fa0d75a5d3b204ac8f02bb244231a;hp=5b9283f712e3cee0d54711991ec795cb2c760ea8;hpb=74c5a1256401a709d74c496b972cc0bd38decaa8;p=dak.git diff --git a/dak/check_proposed_updates.py b/dak/check_proposed_updates.py index 5b9283f7..16a98763 100755 --- a/dak/check_proposed_updates.py +++ b/dak/check_proposed_updates.py @@ -176,6 +176,9 @@ def check_changes (filename): try: changes = utils.parse_changes(filename) files = utils.build_file_list(changes) + except ChangesUnicodeError: + utils.warn("Improperly encoded changes file, not utf-8") + return except: utils.warn("Error parsing changes file '%s'" % (filename)) return @@ -242,7 +245,7 @@ def parse_packages(): suite = "stable" stable = {} components = Cnf.ValueList("Suite::%s::Components" % (suite)) - architectures = filter(utils.real_arch, Cnf.ValueList("Suite::%s::Architectures" % (suite))) + architectures = filter(utils.real_arch, database.get_suite_architectures(suite)) for component in components: for architecture in architectures: filename = "%s/dists/%s/%s/binary-%s/Packages" % (Cnf["Dir::Root"], suite, component, architecture)