File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed
Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1+ -------------------------------------------------------------------
2+ Tue Jan 6 13:29:03 UTC 2026 - Martin Vidner <mvidner@suse.com>
3+
4+ - save_y2logs: Do not use the legacy /var/lib/rpm database path
5+ (bsc#1254914)
6+ - 5.0.18
7+
18-------------------------------------------------------------------
29Thu Oct 16 07:44:28 UTC 2025 - Stefan Schubert <schubi@suse.de>
310
Original file line number Diff line number Diff line change 1717
1818
1919Name: yast2
20- Version: 5.0.17
20+ Version: 5.0.18
2121
2222Release: 0
2323Summary: YaST2 Main Package
Original file line number Diff line number Diff line change 6464fi
6565
6666# check for compression program
67- if [ " $COMPRESSION " -a -z " $( type -p $COMPRESSION ) " ]; then
67+ if [ " $COMPRESSION " ] && [ -z " $( type -p $COMPRESSION ) " ]; then
6868 echo " FATAL: $COMPRESSION not available" >&2
6969 exit 3
7070fi
@@ -118,11 +118,16 @@ if [ -f /mnt/var/log/pbl.log ]; then
118118fi
119119
120120# installed packages
121- if [ -f /var/lib/rpm/Packages -o -f /var/lib/rpm/Packages.db ] && [ " $( type -p rpm) " ]; then
122- rpm -qa --qf ' %{NAME}-%{VERSION}-%{RELEASE}\t\t\t(%{VENDOR})\t%{DISTRIBUTION}\n' 2> /dev/null | sort > /$TMPDIR /rpm-qa
123- LIST_TMP=" $LIST_TMP rpm-qa"
121+ if [ " $( type -p rpm) " ]; then
122+ RPM_DBPATH=$( rpm --eval " %{_dbpath}" )
123+ if [ -f " $RPM_DBPATH " /Packages.db ] ||
124+ [ -f " $RPM_DBPATH " /Packages ]; then
125+ rpm -qa --qf ' %{NAME}-%{VERSION}-%{RELEASE}\t\t\t(%{VENDOR})\t%{DISTRIBUTION}\n' | sort > $TMPDIR /rpm-qa
126+ LIST_TMP=" $LIST_TMP rpm-qa"
127+ fi
124128fi
125129
130+
126131# rename, so people can see it
127132if [ -f /.packages.root ]; then
128133 cp /.packages.root $TMPDIR /_packages.root
You can’t perform that action at this time.
0 commit comments