Package: git-buildpackage Version: 0.9.22 Severity: normal X-Debbugs-Cc: rvandegr...@debian.org
Hello, I had built a snapshot with `gbp dch -S`, and wanted to prepare an upload to experimental. I ran: $ gbp dch -R --dist experimental But this gave me a changelog with unstable. I wasn't careful enough and uploaded the result :(. The manpage documents that --release sets the distribution to unstable. So maybe this behavior is intentional? If so, it'd be really nice to get an error message if I also supply --dist. But I think it may be a bug. When run with --verbose, the log makes it look like gbp is setting the dist to experimental. Example from 0.9.28 is below, 0.9.22 behaves the same. Starting situation: $ head -n 1 debian/changelog efl (1.26.2-3~exp1~1.gbp7d7265) UNRELEASED; urgency=medium Update changelog for a release: $ gbp dch -R --dist experimental --ignore-branch --verbose gbp:debug: ['git', 'rev-parse', '--show-cdup'] gbp:debug: ['git', 'rev-parse', '--is-bare-repository'] gbp:debug: ['git', 'rev-parse', '--git-dir'] gbp:debug: ['git', 'symbolic-ref', 'HEAD'] gbp:debug: ['git', 'show-ref', 'refs/heads/gbp-bug'] gbp:info: Continuing from commit '7d72650852767b5308fe9f4c0ff1a8dbd7f504d1' gbp:debug: ['git', 'log', '--pretty=format:%H', '--no-show-signature', '7d72650852767b5308fe9f4c0ff1a8dbd7f504d1..HEAD', '--no-merges', '--'] gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'ef0ec43479de56c266f7a8680bffcc6712f3af93^0'] gbp:debug: ['git', 'show', '--pretty=format:%an%x00%ae%x00%ad%x00%cn%x00%ce%x00%cd%x00%s%x00%f%x00%b%x00', '-z', '--date=raw', '--no-renames', '--name-status', '--no-show-signature', 'ef0ec43479de56c266f7a8680bffcc6712f3af93'] gbp:debug: debchange ['--no-auto-nmu', '--nomultimaint-merge', '--multimaint', '--', '[[[insert-git-dch-commit-message-here]]]'] [] gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', '3e3486545ceafae9fc2d8eff789addf0a6b95600^0'] gbp:debug: ['git', 'show', '--pretty=format:%an%x00%ae%x00%ad%x00%cn%x00%ce%x00%cd%x00%s%x00%f%x00%b%x00', '-z', '--date=raw', '--no-renames', '--name-status', '--no-show-signature', '3e3486545ceafae9fc2d8eff789addf0a6b95600'] gbp:debug: debchange ['--no-auto-nmu', '--nomultimaint-merge', '--multimaint', '--', '[[[insert-git-dch-commit-message-here]]]'] [] gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'c8929207ddc7721c81d5d8b9776e595d7c525d2f^0'] gbp:debug: ['git', 'show', '--pretty=format:%an%x00%ae%x00%ad%x00%cn%x00%ce%x00%cd%x00%s%x00%f%x00%b%x00', '-z', '--date=raw', '--no-renames', '--name-status', '--no-show-signature', 'c8929207ddc7721c81d5d8b9776e595d7c525d2f'] gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', '329535b39b82520c0d4e2823490cf3406f4567bf^0'] gbp:debug: ['git', 'show', '--pretty=format:%an%x00%ae%x00%ad%x00%cn%x00%ce%x00%cd%x00%s%x00%f%x00%b%x00', '-z', '--date=raw', '--no-renames', '--name-status', '--no-show-signature', '329535b39b82520c0d4e2823490cf3406f4567bf'] gbp:debug: Set header option 'distribution' to 'experimental' gbp:debug: Set header option 'urgency' to 'medium' gbp:debug: debchange ['--no-auto-nmu', '--nomultimaint-merge', '--multimaint', '--distribution=experimental', '--urgency=medium', '--nomainttrailer', '--', ''] [] libdistro-info-perl is not installed, Debian release names are not known. libdistro-info-perl is not installed, Ubuntu release names are not known. gbp:debug: debchange ['--no-auto-nmu', '--release', '--no-force-save-on-release', '--nomultimaint-merge', '--multimaint', '--', ''] [] gbp:debug: sensible-editor ['debian/changelog'] [] Oops: $ head -n 1 debian/changelog efl (1.26.2-3~exp1) unstable; urgency=medium Thanks, Ross -- System Information: Debian Release: 11.4 APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable'), (40, 'unstable'), (40, 'testing'), (30, 'experimental'), (1, 'experimental-debug') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.18.0-0.bpo.1-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages git-buildpackage depends on: ii devscripts 2.22.2~bpo11+1 ii git 1:2.30.2-1 ii man-db 2.9.4-2 ii python3 3.9.2-3 ii python3-dateutil 2.8.1-6 ii python3-pkg-resources 52.0.0-4 ii sensible-utils 0.0.14 Versions of packages git-buildpackage recommends: ii cowbuilder 0.89 ii pbuilder 0.231 ii pristine-tar 1.49 ii python3-requests 2.25.1+dfsg-2 ii sbuild 0.81.2 Versions of packages git-buildpackage suggests: ii python3-notify2 0.3-4 ii sudo 1.9.5p2-3 ii unzip 6.0-26 -- no debconf information