Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions package/yast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jan 6 13:29:03 UTC 2026 - Martin Vidner <mvidner@suse.com>

- save_y2logs: Do not use the legacy /var/lib/rpm database path
(bsc#1254914)
- 5.0.18

-------------------------------------------------------------------
Thu Oct 16 07:44:28 UTC 2025 - Stefan Schubert <schubi@suse.de>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2
Version: 5.0.17
Version: 5.0.18

Release: 0
Summary: YaST2 Main Package
Expand Down
13 changes: 9 additions & 4 deletions scripts/save_y2logs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ else
fi

# check for compression program
if [ "$COMPRESSION" -a -z "$(type -p $COMPRESSION)" ]; then
if [ "$COMPRESSION" ] && [ -z "$(type -p $COMPRESSION)" ]; then
echo "FATAL: $COMPRESSION not available" >&2
exit 3
fi
Expand Down Expand Up @@ -118,11 +118,16 @@ if [ -f /mnt/var/log/pbl.log ]; then
fi

# installed packages
if [ -f /var/lib/rpm/Packages -o -f /var/lib/rpm/Packages.db ] && [ "$(type -p rpm)" ]; then
rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE}\t\t\t(%{VENDOR})\t%{DISTRIBUTION}\n' 2>/dev/null | sort >/$TMPDIR/rpm-qa
LIST_TMP="$LIST_TMP rpm-qa"
if [ "$(type -p rpm)" ]; then
RPM_DBPATH=$(rpm --eval "%{_dbpath}")
if [ -f "$RPM_DBPATH"/Packages.db ] ||
[ -f "$RPM_DBPATH"/Packages ]; then
rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE}\t\t\t(%{VENDOR})\t%{DISTRIBUTION}\n' | sort >$TMPDIR/rpm-qa
LIST_TMP="$LIST_TMP rpm-qa"
fi
fi


# rename, so people can see it
if [ -f /.packages.root ]; then
cp /.packages.root $TMPDIR/_packages.root
Expand Down