X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fimport_archive.py;h=82def1e60cfe0cc54fc7cf782c27bf739de815d0;hb=f89e353cb89593444b3e841cadc7175a3f4e9081;hp=f064b4aef75160b09f2f330425460ae0b278056b;hpb=5bc1925a3750cbafc82703c60c5106686c8c7af4;p=dak.git diff --git a/dak/import_archive.py b/dak/import_archive.py old mode 100755 new mode 100644 index f064b4ae..82def1e6 --- a/dak/import_archive.py +++ b/dak/import_archive.py @@ -98,8 +98,8 @@ def check_signature (filename): return None status_read, status_write = os.pipe() - cmd = "gpgv --status-fd %s --keyring %s --keyring %s %s" \ - % (status_write, Cnf["Dinstall::PGPKeyring"], Cnf["Dinstall::GPGKeyring"], filename) + cmd = "gpgv --status-fd %s %s %s" \ + % (status_write, daklib.utils.gpg_keyring_args(), filename) (output, status, exit_status) = daklib.utils.gpgv_get_status_output(cmd, status_read, status_write) # Process the status-fd output @@ -280,7 +280,6 @@ def update_section(): prefix = "" else: prefix = "" - component = component.replace("non-US/", "") if component != 'main': suffix = '/' + component else: @@ -491,14 +490,14 @@ def do_da_do_da (): Arguments = [('a', "action", "Import-Archive::Options::Action"), ('h', "help", "Import-Archive::Options::Help")] for i in [ "action", "help" ]: - if not Cnf.has_key("Import-Archive::Options::%s" % (i)): - Cnf["Import-Archive::Options::%s" % (i)] = "" + if not Cnf.has_key("Import-Archive::Options::%s" % (i)): + Cnf["Import-Archive::Options::%s" % (i)] = "" apt_pkg.ParseCommandLine(Cnf, Arguments, sys.argv) Options = Cnf.SubTree("Import-Archive::Options") if Options["Help"]: - usage() + usage() if not Options["Action"]: daklib.utils.warn("""no -a/--action given; not doing anything.