]> git.pld-linux.org Git - packages/dnf.git/commitdiff
trivial rpm5 fixes
authorElan Ruusamäe <glen@delfi.ee>
Sun, 15 Jun 2014 20:41:17 +0000 (23:41 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 15 Jun 2014 20:41:17 +0000 (23:41 +0300)
dnf.spec
rpm5.patch [new file with mode: 0644]

index 207996dd876b9575e7707316829809af6e5fd27e..d409066a5401a4b7a22e5a14a58f86534c76c0e4 100644 (file)
--- a/dnf.spec
+++ b/dnf.spec
@@ -8,13 +8,14 @@
 Summary:       Package manager forked from Yum, using libsolv as a dependency resolver
 Name:          dnf
 Version:       0.5.1
-Release:       0.2
+Release:       0.5
 Group:         Base
 # For a breakdown of the licensing, see PACKAGE-LICENSING
-License:       GPLv2+ and GPLv2 and GPL
+License:       GPL v2+ and GPL v2 and GPL
 #Source0:      http://akozumpl.fedorapeople.org/%{name}-%{gitrev}.tar.xz
 Source0:       http://pkgs.fedoraproject.org/repo/pkgs/dnf/%{name}-%{gitrev}.tar.xz/fdf85937f979702e1968150e8e150666/dnf-%{gitrev}.tar.xz
 # Source0-md5: fdf85937f979702e1968150e8e150666
+Patch0:                rpm5.patch
 URL:           https://github.com/akozumpl/dnf
 BuildRequires: cmake
 BuildRequires: gettext
@@ -48,6 +49,7 @@ resolver.
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1
 
 # the -D doesn't work
 %{__sed} -i -e '/SYSTEMD_DIR/ s#/usr/lib/systemd/system#%{systemdunitdir}#' CMakeLists.txt
diff --git a/rpm5.patch b/rpm5.patch
new file mode 100644 (file)
index 0000000..af2a311
--- /dev/null
@@ -0,0 +1,41 @@
+--- dnf/dnf/base.py~   2014-05-02 11:00:42.000000000 +0300
++++ dnf/dnf/base.py    2014-06-15 20:38:11.739642641 +0300
+@@ -347,8 +347,7 @@
+                         'justdb': rpm.RPMTRANS_FLAG_JUSTDB,
+                         'nocontexts': rpm.RPMTRANS_FLAG_NOCONTEXTS,
+                         'nocrypto' : rpm.RPMTRANS_FLAG_NOFILEDIGEST}
+-    _TS_VSFLAGS_TO_RPM = {'nocrypto' : rpm._RPMVSF_NOSIGNATURES |
+-                          rpm._RPMVSF_NODIGESTS }
++    _TS_VSFLAGS_TO_RPM = {'nocrypto' : rpm.RPMVSF_NODSAHEADER }
+     @property
+     def ts(self):
+@@ -1455,7 +1454,7 @@
+             return 1
+         myts = dnf.rpmUtils.transaction.initReadOnlyTransaction(root=self.conf.installroot)
+-        myts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
++        myts.pushVSFlags(~rpm.RPMVSF_NODSAHEADER)
+         idx = myts.dbMatch('name', 'gpg-pubkey')
+         keys = len(idx)
+         del idx
+--- dnf/dnf/rpmUtils/transaction.py~   2014-05-02 11:00:42.000000000 +0300
++++ dnf/dnf/rpmUtils/transaction.py    2014-06-15 20:38:31.170535603 +0300
+@@ -118,5 +118,5 @@
+ def initReadOnlyTransaction(root='/'):
+     read_ts =  TransactionWrapper(root=root)
+-    read_ts.pushVSFlags((rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
++    read_ts.pushVSFlags(rpm.RPMVSF_NODSAHEADER)
+     return read_ts
+--- dnf/dnf/yum/config.py~     2014-05-02 11:00:42.000000000 +0300
++++ dnf/dnf/yum/config.py      2014-06-15 20:38:49.048023852 +0300
+@@ -1036,7 +1036,7 @@
+     @return: The release version as a string (eg. '4' for FC4)
+     '''
+     ts = dnf.rpmUtils.transaction.initReadOnlyTransaction(root=installroot)
+-    ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
++    ts.pushVSFlags(~rpm.RPMVSF_NODSAHEADER)
+     try:
+         idx = ts.dbMatch('provides', distroverpkg)
+     except TypeError as e:
This page took 0.296023 seconds and 4 git commands to generate.