summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2011-11-10 21:29:16 +0100
committerJean Delvare <jdelvare@suse.de>2011-11-10 21:29:16 +0100
commitbbd198216148c2dc11f74e6e54a19e92ab13675f (patch)
treefc6306ad5ddad64da789659159c2e8811b1cb7f6
parent0b1f605c5d5db8b77a4e0d1c528c8d7bc696d471 (diff)
downloadquilt-bbd198216148c2dc11f74e6e54a19e92ab13675f.tar.gz
inspect: Old versions of file don't know about xz-compressed files, so recognize them by their filename too
-rw-r--r--quilt.changes6
-rw-r--r--quilt/scripts/inspect.in5
2 files changed, 11 insertions, 0 deletions
diff --git a/quilt.changes b/quilt.changes
index 0c1b1d6..fb12a3c 100644
--- a/quilt.changes
+++ b/quilt.changes
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Thu Nov 10 21:26:10 CET 2011 - jdelvare@suse.de
+
+- scripts/inspect.in: Old versions of file don't know about
+ xz-compressed files, so recognize them by their filename too.
+
+-------------------------------------------------------------------
Thu Nov 10 21:11:36 CET 2011 - pth@suse.de
- quilt/inspect.in: Newer file changed the output for xz compressed
diff --git a/quilt/scripts/inspect.in b/quilt/scripts/inspect.in
index a7ee523..87faf8a 100644
--- a/quilt/scripts/inspect.in
+++ b/quilt/scripts/inspect.in
@@ -97,6 +97,11 @@ do
# file doesn't reliably recognize lzma-compressed files
filetype="lzma"
;;
+ *.xz)
+ # old versions of file don't know about xz-compressed
+ # files
+ filetype="xz"
+ ;;
*)
filetype="$(file -b "$file")"
;;