[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#918868: apt: changelog subcommand picks newer release than installed when custom version is installed



Package: apt
Version: 1.8.0~alpha3
Severity: normal

`apt changelog foo` picks newer release than installed when custom
version is installed but the manual page states that the default is
meant to be the installed version.

$ man apt-get | grep '^ *changelog' -A3
       changelog
           changelog tries to download the changelog of a package and displays
           it through sensible-pager. By default it displays the changelog for
           the version that is installed. However, you can specify the same
           options as for the install command.

I've recompiled restic locally to add a couple of patches that are not
yet merged upstream and the command `apt changelog restic` shows me the
version from unstable instead of my custom changelog. As far as I can
tell all the options that `apt install` provides to select non-default
versions also work for `apt changelog` though.

$ apt policy restic
restic:
  Installed: 0.9.3+ds-1+pabs1
  Candidate: 0.9.4+ds-1
  Version table:
     0.9.4+ds-1 800
        800 https://deb.debian.org/debian unstable/main amd64 Packages
 *** 0.9.3+ds-1+pabs1 100
        100 /var/lib/dpkg/status
     0.9.3+ds-1 900
        900 https://deb.debian.org/debian testing/main amd64 Packages

$ apt changelog restic
Get:1 http://metadata.ftp-master.debian.org restic 0.9.4+ds-1 Changelog [7,041 B]
Fetched 7,041 B in 2s (3,036 B/s)

$ apt changelog restic/now 
Get:1 store: restic 0.9.3+ds-1+pabs1 Changelog
Fetched 6,754 B in 0s (0 B/s)

$ apt changelog restic=0.9.3+ds-1+pabs1
Get:1 store: restic 0.9.3+ds-1+pabs1 Changelog
Fetched 6,754 B in 0s (0 B/s)

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt depends on:
ii  adduser                 3.118
ii  debian-archive-keyring  2018.1
ii  gpgv                    2.2.12-1
ii  libapt-pkg5.0           1.8.0~alpha3
ii  libc6                   2.28-2
ii  libgcc1                 1:8.2.0-13
ii  libgnutls30             3.6.5-2
ii  libseccomp2             2.3.3-3
ii  libstdc++6              8.2.0-13

Versions of packages apt recommends:
ii  ca-certificates  20170717

Versions of packages apt suggests:
ii  apt-doc         1.8.0~alpha3
ii  aptitude        0.8.11-6
ii  dpkg-dev        1.19.2
ii  gnupg           2.2.12-1
ii  gnupg1          1.4.23-1
ii  gnupg2          2.2.12-1
ii  powermgmt-base  1.33

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: