Accepting request 539734 from home:1Antoine1:branches:filesystems

- Add btrfsmaintenance-0.3.1-fix-rpm-db-path.patch:
  * Change RPM database path to /usr/lib/sysimage/rpm for
    Tumbleweed.

OBS-URL: https://build.opensuse.org/request/show/539734
OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsmaintenance?expand=0&rev=20
This commit is contained in:
David Sterba 2017-11-08 12:57:07 +00:00 committed by Git OBS Bridge
parent 308266bf30
commit 129700529f
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,18 @@
RPM database location has changed from /var/lib/rpm to /usr/lib/sysimage/rpm
for openSUSE Tumbleweed.
See https://lists.opensuse.org/opensuse-factory/2017-11/msg00188.html.
---
diff -up ./btrfs-defrag-plugin.py.orig ./btrfs-defrag-plugin.py
--- ./btrfs-defrag-plugin.py.orig 2017-11-07 22:56:51.559813001 +0100
+++ ./btrfs-defrag-plugin.py 2017-11-07 22:57:38.027814927 +0100
@@ -24,7 +24,7 @@ import subprocess
DEBUG=False
EXTENT_SIZE=64*1024*1024
LOGFILE='/tmp/btrfs-defrag-plugin.log'
-PATH='/var/lib/rpm'
+PATH='/usr/lib/sysimage/rpm/'
def dbg(args):
if not DEBUG: return

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Nov 7 22:06:55 UTC 2017 - antoine.belvire@opensuse.org
- Add btrfsmaintenance-0.3.1-fix-rpm-db-path.patch:
* Change RPM database path to /usr/lib/sysimage/rpm for
Tumbleweed.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 5 09:17:36 UTC 2017 - lnussel@suse.de Wed Jul 5 09:17:36 UTC 2017 - lnussel@suse.de

View File

@ -24,6 +24,8 @@ License: GPL-2.0
Group: System/Base Group: System/Base
Url: https://github.com/kdave/btrfsmaintenance Url: https://github.com/kdave/btrfsmaintenance
Source0: %{name}-%{version}.tar.bz2 Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE btrfsmaintenance-0.3.1-fix-rpm-db-path.patch -- Fix RPM database path for Tumbleweed
Patch0: btrfsmaintenance-0.3.1-fix-rpm-db-path.patch
Requires: zypp-plugin-python Requires: zypp-plugin-python
Requires: libzypp(plugin:commit) Requires: libzypp(plugin:commit)
Recommends: cron Recommends: cron
@ -42,6 +44,9 @@ on selected mountpoints or directories.
%prep %prep
%setup -q %setup -q
%if 0%{?suse_version} > 1320
%patch0
%endif
%build %build