X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fimport_archive.py;fp=dak%2Fimport_archive.py;h=d61a1a19704e203feec8d012d509d765d34ca140;hb=e47619471d54d20613d18bb8ac928650513ab404;hp=d87d6ca9e3fd98e638620807aed50be1929cbdb3;hpb=8d5c033bb1cc903c5ce7dc87b4122ea441fa28a3;p=dak.git diff --git a/dak/import_archive.py b/dak/import_archive.py index d87d6ca9..d61a1a19 100755 --- a/dak/import_archive.py +++ b/dak/import_archive.py @@ -254,7 +254,7 @@ def update_suites (): for i in ("Version", "Origin", "Description"): if SubSec.has_key(i): projectB.query("UPDATE suite SET %s = '%s' WHERE suite_name = '%s'" % (i.lower(), SubSec[i], suite.lower())) - for architecture in Cnf.ValueList("Suite::%s::Architectures" % (suite)): + for architecture in get_suite_architectures(suite): architecture_id = database.get_architecture_id (architecture) projectB.query("INSERT INTO suite_architectures (suite, architecture) VALUES (currval('suite_id_seq'), %d)" % (architecture_id)) @@ -570,8 +570,7 @@ Please read the documentation before running this script. udeb_components = map(lambda x: x+"/debian-installer", Cnf.ValueList("Suite::%s::UdebComponents" % suite)) for component in Cnf.SubTree("Component").List() + udeb_components: - architectures = filter(utils.real_arch, - Cnf.ValueList("Suite::%s::Architectures" % (suite))) + architectures = filter(utils.real_arch, get_suite_architectures(suite)) for architecture in architectures: packages = Cnf["Dir::Root"] + "dists/" + Cnf["Suite::%s::CodeName" % (suite)] + '/' + component + '/binary-' + architecture + '/Packages' print 'Processing '+packages+'...'