]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
dnf: upgrade 4.14.0 -> 4.16.1
authorAlexander Kanavin <alex.kanavin@gmail.com>
Wed, 14 Jun 2023 09:28:39 +0000 (11:28 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Jun 2023 20:24:44 +0000 (21:24 +0100)
Correct the query for locations of rpm package files in the local repo:
upstream has changed it to a separate cmdline parameter.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager/rpm/__init__.py
meta/recipes-devtools/dnf/dnf_4.16.1.bb [moved from meta/recipes-devtools/dnf/dnf_4.14.0.bb with 98% similarity]

index fa218485f5ef3a65cc02d9957e56e8f550709338..f40c880af49dc3b023aecf2cb617ac568d3f79a8 100644 (file)
@@ -386,11 +386,12 @@ class RpmPM(PackageManager):
             self.save_rpmpostinst(pkg)
 
     def extract(self, pkg):
-        output = self._invoke_dnf(["repoquery", "--queryformat", "%{location}", pkg])
+        output = self._invoke_dnf(["repoquery", "--location", pkg])
         pkg_name = output.splitlines()[-1]
         if not pkg_name.endswith(".rpm"):
             bb.fatal("dnf could not find package %s in repository: %s" %(pkg, output))
-        pkg_path = oe.path.join(self.rpm_repo_dir, pkg_name)
+        # Strip file: prefix
+        pkg_path = pkg_name[5:]
 
         cpio_cmd = bb.utils.which(os.getenv("PATH"), "cpio")
         rpm2cpio_cmd = bb.utils.which(os.getenv("PATH"), "rpm2cpio")
similarity index 98%
rename from meta/recipes-devtools/dnf/dnf_4.14.0.bb
rename to meta/recipes-devtools/dnf/dnf_4.16.1.bb
index 62df8c4ace5bc60eba90ae62cb71edfe9525c46b..ff79701dc7b467b7d16c7410a9f64931606c0c23 100644 (file)
@@ -18,7 +18,7 @@ SRC_URI = "git://github.com/rpm-software-management/dnf.git;branch=master;protoc
            file://0001-dnf-write-the-log-lock-to-root.patch \
            "
 
-SRCREV = "e50875b3f5790f70720bdb670e1dd2bf4d828744"
+SRCREV = "94b7cc7956580405b219329541d6b40db6499cf1"
 UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
 
 S = "${WORKDIR}/git"