Bug#795837: initramfs-tools: calls dpkg with obsolete relation operator '>'
Package: initramfs-tools
Version: 0.120
Severity: minor
It seems that with newer dpkg we get warnings about the use of obsolete
relation operator '>' during builds of the initramfs. We are using the
attached patch for this in Ubuntu.
-apw
>From e8454859aa8171c0b17c85ad2cca5cf6710fefa1 Mon Sep 17 00:00:00 2001
From: Andy Whitcroft <apw@canonical.com>
Date: Wed, 5 Aug 2015 15:27:08 +0100
Subject: [PATCH] update-initramfs: switch dpkg --compare-versions from > to >=
to avoid warnings from dpkg. (LP: #1480340)
Signed-off-by: Andy Whitcroft <apw@ubuntu.com>
---
update-initramfs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/update-initramfs b/update-initramfs
index ea301ba..5aa2186 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -237,7 +237,7 @@ get_sorted_versions()
fi
worklist=""
for gsv_i in $version_list; do
- if dpkg --compare-versions "${gsv_x}" '>' "${gsv_i}" 2>/dev/null; then
+ if dpkg --compare-versions "${gsv_x}" '>=' "${gsv_i}" 2>/dev/null; then
worklist="${worklist} ${gsv_x} ${gsv_i}"
gsv_x=""
else
--
2.5.0
Reply to: