summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-16 16:51:47 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-16 16:51:47 (EDT)
commitaabf5335ffddcc644f7c22b3ecca9484540b9bc5 (patch)
tree37311deaa03457b7d7ae7bbc9aebf1bbe1b39382
parent78be2ae63fd397d549ab827f647eb3e3dd2087e3 (diff)
ob-unpacksource: Support xz decompression
-rw-r--r--TODO1
-rw-r--r--src/ob-unpacksource.sh3
2 files changed, 3 insertions, 1 deletions
diff --git a/TODO b/TODO
index 40edafa..f99f2a0 100644
--- a/TODO
+++ b/TODO
@@ -14,7 +14,6 @@ Functional Changes
* ob-installdocs: Handle non-directory non-regular files?
* ob-applypatches: Track and skip applied patches in `.opkbuild/patches` file:
- `ob-applypatches: Skipping applied patch "01_foo.patch"...`
- * ob-unpacksource: Support xz upstream archive decompression.
* ob-unpacksource: Maybe call separate decompressor utilities instead of using
tar's seamless decompression. This enables support for xz with
BusyBox < 1.21.0 (commit dfc2473). (Not really needed, since ProteanOS has
diff --git a/src/ob-unpacksource.sh b/src/ob-unpacksource.sh
index 6c387e8..47362dd 100644
--- a/src/ob-unpacksource.sh
+++ b/src/ob-unpacksource.sh
@@ -72,6 +72,9 @@ get_upstream_compression()
'.lz')
upstream_ar_z='a'
;;
+ '.xz')
+ upstream_ar_z='J'
+ ;;
'.Z')
upstream_ar_z='Z'
;;