Your message dated Tue, 22 Apr 2025 15:04:45 +0000
with message-id <e1u7faz-008qbx...@fasolo.debian.org>
and subject line Bug#983160: fixed in dput-ng 1.43
has caused the Debian Bug report #983160,
regarding dput-ng: --override doesn't override profile parameters
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
983160: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983160
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dput-ng
Version: 1.32

Dear maintainers,

It seems the `--override` option in dput-ng doesn't really override
parameters in profiles.

I've added the `check-debs` hook to my test profile and added the
following default values:

    "check-debs": {
        "enforce": "source",
        "skip": false
    },

To debug this issue, I also made `dput/uploader.py` print the values of
`args.override` and `profile` right before `run_pre_hooks(changes,
profile)` is ran:

foo@bar:/usr/lib/python3/dist-packages/dput# diff -C 3 uploader.py
new_uploader.py
*** uploader.py 2021-02-20 02:09:11.222489435 -0500
--- new_uploader.py     2021-02-20 02:09:05.314403878 -0500
***************
*** 310,315 ****
--- 310,317 ----

      if changes.get_changes_file().endswith(".changes"):
          if 'hooks' in profile:
+             print("Printing overrides:\n", args.override) ## NEW
+             print("Printing profile:\n", profile)  ## NEW
              run_pre_hooks(changes, profile)
          else:
              logger.trace(profile)

Here's the result:

foo@bar:$ dput --override "check-debs.enforce=debs" --override
"check-debs.skip=true" test foo_1.0.0-1_amd64.changes

Uploading foo using ftp to test (host: test.org; directory:
/pub/UploadQueue/)
Printing overrides:
 {'check-debs': {'enforce': [['debs']], 'skip': [['true']]}}
Printing profile:
 {'name': 'test', 'allow_dcut': True, 'allow_unsigned_uploads': False,
'allowed_distributions': '(?!UNRELEASED)', 'default_host_main': 'test',
'full_upload_log': False, 'hash': 'md5', 'interface': 'cli', 'login':
'anonymous', 'meta': 'debian', 'method': 'ftp', 'passive_ftp': True,
'post_upload_command': '', 'pre_upload_command': '', 'run_lintian':
False, 'scp_compress': False, 'allowed-distribution':
{'codename-groups': ['general', 'backport', 'rm-managed']}, 'codenames':
'debian', 'hooks': ['allowed-distribution', 'protected-distribution',
'check-debs', 'checksum', 'suite-mismatch', 'gpg'], 'run_dinstall':
False, 'check_version': False, 'fqdn': 'test.org', 'incoming':
'/pub/UploadQueue/', 'check-debs': {'enforce': 'source', 'skip': False},
'valid_commands': ['break-the-archive', 'cancel', 'dm', 'reschedule',
'rm', 'upload']}
running allowed-distribution: check whether a local profile permits
uploads to the target distribution
running protected-distribution: warn before uploading to distributions
where a special policy applies
running check-debs: makes sure the upload contains a binary package
There are .debs in this upload, and enforcing they don't exist.

As you can see, the proper overrides are passed to `args.override`, but
they don't seem to be merged with the `profile` variable, which is the
one passed to the `run_pre_hooks(changes, profile)` command.

This makes it impossible to actually override any profile variables :(

I've put this in on my TODO list, but I'm not sure I'll have time to
send a patch anytime soon.

If someone else wants to have a go at this bug, please be my guest :)

-- 
  ⢀⣴⠾⠻⢶⣦⠀
  ⣾⠁⢠⠒⠀⣿⡁  Louis-Philippe Véronneau
  ⢿⡄⠘⠷⠚⠋   po...@debian.org / veronneau.org
  ⠈⠳⣄

--- End Message ---
--- Begin Message ---
Source: dput-ng
Source-Version: 1.43
Done: Colin Watson <cjwat...@debian.org>

We believe that the bug you reported is fixed in the latest version of
dput-ng, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 983...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwat...@debian.org> (supplier of updated dput-ng package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 22 Apr 2025 15:27:35 +0100
Source: dput-ng
Architecture: source
Version: 1.43
Distribution: unstable
Urgency: medium
Maintainer: dput-ng Maintainers <dput...@packages.debian.org>
Changed-By: Colin Watson <cjwat...@debian.org>
Closes: 983160
Changes:
 dput-ng (1.43) unstable; urgency=medium
 .
   * Team upload.
   * Fix many ResourceWarnings.
   * Make the --override option actually work (closes: #983160).
Checksums-Sha1:
 9bd65eaf24599f0d040e1acb21348749e6717206 2340 dput-ng_1.43.dsc
 4208a7f951824d058bcdd3a78f9d2ad9e0541546 89272 dput-ng_1.43.tar.xz
Checksums-Sha256:
 481f31e6c41103d9e961fa7d60d60ff172385b4ec2c89f294fc5597905936968 2340 
dput-ng_1.43.dsc
 c129e68ecb27cb519a04e1722fbc0f26d6d7fbd4bc96fc287d866bed3ca7825a 89272 
dput-ng_1.43.tar.xz
Files:
 36e324a58a4ea0e6bf91e0fceaf385c7 2340 devel optional dput-ng_1.43.dsc
 177a2a555bd7a734ce8282edb0b7db26 89272 devel optional dput-ng_1.43.tar.xz

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

iQIzBAEBCgAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmgHp4EACgkQOTWH2X2G
UAvkuhAAkNDYwyIToA5obAPy8nXiZQRo/GxVfFyCHDXXV9/0JGpYdngbXfRxrDEn
iSOud+OrjMOfTXsaxgrtfHdsmSZ3iXZSZhqobDvXfwviF0DHBFZ3L/CZylX1bPRX
SEj+NH8B/9jCtSnr2p7HA3PEIBzA4FIgi7KiO8oC9dTFwpL55GTJe+12PtLfUFLG
XLdaXLewyJQl7N7oe414+wcFYij3ZPk8baWrSQ/TkNgSqk5bGny6zkkuYG6j3ghU
ugbridl+tvbFNM1ho+IePHEOqtyh0NZBhnqNyPYpOBRqp6PqS3vKYAqEEgTCAdsh
bSkLzOHeNYiBd0zvhLaHJCh7/4qXhUzSujJUvMrO+NoZvGXyeOONeGrkb2kV/WGU
YZj3YNTgSj6P2wELuUhIzh6kz71QEQR8o4gUQVLFIXUuJr0rVS1Ze0glvhYAY8M0
fHgOoHDjB/Yw/25F6WenANcjTiUjcPBYmsaVwCCxPURC+fA8WDvbJwchquGmHWf3
vpJ/FbEByhSdKL1RcKutVFE4AyveC5tUVVLbZpi4iqAB1hK6iTxdRkcoUdfdn2vv
TimekX+RjunJ+KbHgILpuZXEiyxZvTw2PyFj+cEVidvOr66Y3bYc2sS2f+Gn2d9s
4/Wk9HxQrFFUrCWbc1GN3APSyx++oSnX6i3QQkOvGbzQ1df6hbA=
=QfQ9
-----END PGP SIGNATURE-----

Attachment: pgpWd3S0__OpP.pgp
Description: PGP signature


--- End Message ---

Reply via email to