Package: mini-dinstall
Version: 0.7.0
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I suspect (but did not verify) this is related to the port to python3.

The mini-dinstall docs say that the default value for incoming_permissions is 
0755. If you place

incoming_permissions = 0755

in .mini-dinstall it is interpreted as decimal, with fairly bizarre resulting 
permissions.
0o755 yields

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'

As a workaround, I was able to enter

incoming_permissions = 488

which works, but is bit cryptic. In this specific case I could also
accept the defaults, I suppose.

- -- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.17.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mini-dinstall depends on:
ii  apt-utils    2.5.0
ii  python3      3.10.4-1+b1
ii  python3-apt  2.3.0+b1

Versions of packages mini-dinstall recommends:
ii  gpgv  2.2.35-2

Versions of packages mini-dinstall suggests:
ii  debian-keyring  2022.04.26

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEkiyHYXwaY0SiY6fqA0U5G1WqFSEFAmKHiQcACgkQA0U5G1Wq
FSEsBQ//YmSlaWQ1gwVm8ov1lfv5oBf7L0yfI4AfIlsJi29DFe3vt3ZQSE+1A47v
M9rqqaDqtV4FSHdKmbRj2x9INAe9Hf4Rrq8HfBc8M+qbMbCSGst2uNmBpo7q2w0l
xlUPNAPw1+3VUTh4bQTB543oPxvGpnaLCkcd50RsAedvgiUKjd5BpFX5KdqNKXjN
X+3MH/hMlywVzSBV8jRW5LSw0EIgl/Bn5nOZgkrh+2l3ZtXQTv1av3O1DA6lM785
FFvBPWH3xSut4weJZBwCW3Yh+v7MhWZO5Gily4hPGqhAZkxAPkctqHDSEHCsGKks
16GNpXPEiJOiCDRgnUgTdc2nhzsNj3Cbjgb4MTHZvw7JPK/3W/Qp48Ei+gMnQZP+
xpxfuoeyhJ21pLt9jsEI6cCXyKPTB5gqwloLu486Me6wqSfSXYpS8eUeX68WR6Vz
v8ODMDiHU8zCbzyp396yv5++rYAM50EDM5Q0k83a1eoE/dVxv9qBGdRWQcIhs0f6
aUQEunpRuRlRLs1sc+xNqE6qkpdBM2aYniRpXvaU7aRz1zD/ha3zyvf+SRDKVnUv
m3fmOQYfZOHhmhVUfh7lmFaSJHe/UkRi4DuYl8KGORZEJENMt3pXfJIEcqHyy8BJ
Q6jjBblsc9+q0HghXNXHOmJkG/wAvH2/54P0TWR6XaQMOPV9PB0=
=hq/3
-----END PGP SIGNATURE-----

Reply via email to