Quote:
Originally Posted by bamunds
0.38.1 version for stable, /usr/sbin/sbopkg has more than three spots with /var/log/packages.
First is this even an issue for stable?
|
No, this works fine on 14.2. The issue is with /var/log/packages being a symlink to /var/lib/pkgtools/packages on -current, if you do an
ls on /var/log/packages, it will show the symlink, where if you add the trailing slash, it will show the contents of the symlinked location.
Code:
jbhansen@febtober:~$ ls -l /var/log/packages
lrwxrwxrwx 1 root root 24 May 28 2019 /var/log/packages -> ../lib/pkgtools/packages/
jbhansen@febtober:~$ ls -l /var/log/packages/ | head -n10
total 28448
-rw-r--r-- 1 root root 3443 May 28 2019 ConsoleKit2-1.0.0-x86_64-4
-rw-r--r-- 1 root root 62507 May 28 2019 Cython-0.29.7-x86_64-1
-rw-r--r-- 1 root root 12496 May 28 2019 GConf-3.2.6-x86_64-4
-rw-r--r-- 1 root root 1824 May 28 2019 LibRaw-0.18.12-x86_64-1
-rw-r--r-- 1 root root 12181 May 28 2019 M2Crypto-0.33.0-x86_64-1
-rw-r--r-- 1 root root 7173 May 28 2019 MPlayer-20190418-x86_64-1
-rw-r--r-- 1 root root 8512 May 28 2019 Mako-1.0.10-x86_64-1
-rw-r--r-- 1 root root 10993 May 28 2019 ModemManager-1.10.0-x86_64-1
-rw-r--r-- 1 root root 43502 May 28 2019 NetworkManager-1.18.1-x86_64-1
Quote:
Originally Posted by bamunds
Second, if answer to first is yes then do all occurrences need to change?
if no, then never mind nothing to see here... Cheers and Happy New Year!
|
The only thing that *needs* to change is anything with an ls for /var/log/packages without the trailing slash. If you add a trailing slash, it will then work properly on both 14.2 and -current.
Willy has
changed this on sbopkg's master for when 15.0 is released, but this commit won't work on 14.2 and older since it changes the package database location from /var/log/packages to /var/lib/pkgtool/packages.