Package: mini-dinstall
Version: 0.7.0
Severity: normal
X-Debbugs-Cc: d...@duering-andreas.de

Dear Maintainer,

mini-dinstall does not work when I use the provided config file at
/usr/share/doc/mini-dinstall/examples/mini-dinstall.conf.

To reproduce, run the following commands (as any user):
- cp /usr/share/doc/mini-dinstall/examples/mini-dinstall.conf 
~/.mini-dinstall.conf
- mini-dinstall -b -v 

This fails with the following Python traceback:

Traceback (most recent call last):
  File "/usr/bin/mini-dinstall", line 252, in <module>
    incoming_permissions = configp.getint('DEFAULT', 'incoming_permissions')
  File "/usr/lib/python3.9/configparser.py", line 818, in getint
    return self._get_conv(section, option, int, raw=raw, vars=vars,
  File "/usr/lib/python3.9/configparser.py", line 808, in _get_conv
    return self._get(section, conv, option, raw=raw, vars=vars,
  File "/usr/lib/python3.9/configparser.py", line 803, in _get
    return conv(self.get(section, option, **kwargs))
ValueError: invalid literal for int() with base 10: '0o750'

The problem seems to be that configparser only supports decimal integers.
Parsing of the option line

incoming_permissions = 0o750

fails. If I remove the 'o', the number is parsed as a decimal.

I do not know whether this worked with a previous Python version.

With best regards,
Andreas Düring


-- System Information:
Debian Release: 11.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.74-1-pve (SMP w/1 CPU thread)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mini-dinstall depends on:
ii  apt-utils    2.2.4
ii  python3      3.9.2-3
ii  python3-apt  2.2.1

Versions of packages mini-dinstall recommends:
ii  gpgv  2.2.27-2+deb11u2

Versions of packages mini-dinstall suggests:
pn  debian-keyring  <none>

-- no debconf information

Reply via email to