Fix db lock files not getting packaged
Commit a5c4573419
caused a literal
/var/lib/rpm/.*.* file to be packaged as a ghost instead of the db lock
files it was supposed to catch. Ensure any hidden db locks get copied
too after initializing. Thanks to Thierry Vignaud for spotting.
This commit is contained in:
parent
52a9ca7aad
commit
8332f4fa64
7
rpm.spec
7
rpm.spec
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
%global rpmver 4.15.90
|
%global rpmver 4.15.90
|
||||||
%global snapver git14971
|
%global snapver git14971
|
||||||
%global rel 2
|
%global rel 3
|
||||||
|
|
||||||
%global srcver %{version}%{?snapver:-%{snapver}}
|
%global srcver %{version}%{?snapver:-%{snapver}}
|
||||||
%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
|
%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
|
||||||
@ -371,7 +371,7 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/rpm
|
|||||||
# init an empty database for %ghost'ing for all supported backends
|
# init an empty database for %ghost'ing for all supported backends
|
||||||
for be in %{?with_ndb:ndb} %{?with_sqlite:sqlite} %{?with_bdb:bdb}; do
|
for be in %{?with_ndb:ndb} %{?with_sqlite:sqlite} %{?with_bdb:bdb}; do
|
||||||
./rpmdb --define "_db_backend ${be}" --dbpath=${PWD}/${be} --initdb
|
./rpmdb --define "_db_backend ${be}" --dbpath=${PWD}/${be} --initdb
|
||||||
cp -vp ${be}/* $RPM_BUILD_ROOT/var/lib/rpm/
|
cp -va ${be}/. $RPM_BUILD_ROOT/var/lib/rpm/
|
||||||
done
|
done
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
@ -523,6 +523,9 @@ make check || (cat tests/rpmtests.log; exit 1)
|
|||||||
%doc doc/librpm/html/*
|
%doc doc/librpm/html/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 02 2020 Panu Matilainen <pmatilai@redhat.com> - 4.15.90-0.git14971.3
|
||||||
|
- Fix db lock files not getting packaged
|
||||||
|
|
||||||
* Tue Mar 31 2020 Panu Matilainen <pmatilai@redhat.com> - 4.15.90-0.git14971.2
|
* Tue Mar 31 2020 Panu Matilainen <pmatilai@redhat.com> - 4.15.90-0.git14971.2
|
||||||
- Move bdb specific systemd-tmpfiles cleanup crutch behind the bdb bcond
|
- Move bdb specific systemd-tmpfiles cleanup crutch behind the bdb bcond
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user