Package: apt-show-versions
Version: 0.22.7
Severity: important

[~]# rm -rf /var/cache/apt-show-versions/
[~]# apt-show-versions 
can't create /var/cache/apt-show-versions/files: No such file or directory at 
/usr/bin/apt-show-versions line 199.

This is a violation of a "must" directive of the policy (FHS section
"/var/cache : Application cache data"), thus technically RC (but so
trivially recoverable that I'm not filing as such).

Obviously recovery from cache deletion is impossible as non-root, but that's
expected and documented, so that's ok.  Yet it fails both on the cronjob
(that's supposed to build the cache!) and on invocation by root.

Fix: stick a mkdir -p somewhere.

I also guess it'd be better to create this directory during cache build
rather than ship it in the package.


Meow!
-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (150, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0+ (SMP w/6 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages apt-show-versions depends on:
ii  apt                             1.2.12
ii  libapt-pkg-perl                 0.1.29+b5
ii  libperl5.22 [libstorable-perl]  5.22.2-1
ii  perl                            5.22.2-1

apt-show-versions recommends no packages.

apt-show-versions suggests no packages.

-- no debconf information

Reply via email to