Dominique Leuenberger 2017-11-08 14:12:03 +00:00 committed by Git OBS Bridge
commit 7c61086e81
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

View File

@ -24,6 +24,8 @@ License: GPL-2.0
Group: System/Base
Url: https://github.com/kdave/btrfsmaintenance
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: libzypp(plugin:commit)
Recommends: cron
@ -42,6 +44,9 @@ on selected mountpoints or directories.
%prep
%setup -q
%if 0%{?suse_version} > 1320
%patch0
%endif
%build