[dput-ng-maint] Bug#784235: Support True/False in dput.cf

Gaudenz Steinlin gaudenz at debian.org
Mon May 4 10:42:50 UTC 2015


Package: dput-ng
Version: 1.8
Severity: wishlist

dput allows the use of True and False instead of 0/1 for boolean values
in it's configuration file. dput-ng throws the following exception at
this:

Traceback (most recent call last):
  File "/usr/bin/dput", line 106, in <module>
    upload_package(changes, args)
  File "/usr/lib/python2.7/dist-packages/dput/uploader.py", line 273, in invoke_dput
    profile = dput.profile.load_profile(args.host)
  File "/usr/lib/python2.7/dist-packages/dput/profile.py", line 197, in load_profile
    return config.get_config(host)
  File "/usr/lib/python2.7/dist-packages/dput/profile.py", line 148, in get_config
    validate_object('config', ret, 'profiles/%s' % (name))
  File "/usr/lib/python2.7/dist-packages/dput/util.py", line 212, in validate_object
    raise ex
dput.exceptions.InvalidConfigError: Error with config file profiles/XXXXXX - Value 'True' for field 'allow_unsigned_uploads' is not of type boolean


This can be worked around by replacing all True values with 1 and all False values 
with 0, but it would be nice if dput-ng fully supported the old config file format.

Gaudenz

-- System Information:
Debian Release: 8.0
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dput-ng depends on:
ii  python-dput  1.8
pn  python:any   <none>

Versions of packages dput-ng recommends:
ii  bash-completion  1:2.1-4

dput-ng suggests no packages.

-- no debconf information



More information about the dput-ng-maint mailing list