summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2022-04-03 09:06:08 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2022-04-03 09:12:01 -0300
commit0f38300d33e111ed3362b2cef7274d1ef47df41a (patch)
tree1275cf4caa86288951cae382ac74b1336e7c435e
parentacfd5755759ee2634e67501a0049f7dad917ebe7 (diff)
downloadbash-completion-0f38300d33e111ed3362b2cef7274d1ef47df41a.tar.gz
Backport recognition of freecad files as zip files
-rw-r--r--debian/changelog1
-rw-r--r--debian/patches/16-freecad-extension.patch21
-rw-r--r--debian/patches/series1
3 files changed, 23 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index d2d390b1..599ee323 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
bash-completion (1:2.11-6) UNRELEASED; urgency=medium
* Fix completion of find -exec commands (Closes: #1002010).
+ * Recognize freecad files as zip files (Closes: #1004128).
-- Gabriel F. T. Gomes <gabriel@debian.org> Thu, 11 Nov 2021 09:14:04 -0300
diff --git a/debian/patches/16-freecad-extension.patch b/debian/patches/16-freecad-extension.patch
new file mode 100644
index 00000000..317c3368
--- /dev/null
+++ b/debian/patches/16-freecad-extension.patch
@@ -0,0 +1,21 @@
+commit fcaf3d4118af251973a57028302bf057a9681f1f
+Author: steelman <stlman@poczta.fm>
+Date: Thu Apr 22 21:39:19 2021 +0200
+
+ feat(unzip,zipinfo): recognize FreeCAD files (#520)
+
+ https://wiki.freecadweb.org/File_Format_FCStd
+
+diff --git a/bash_completion b/bash_completion
+index 51305148..fca32c57 100644
+--- a/bash_completion
++++ b/bash_completion
+@@ -2132,7 +2132,7 @@
+ }
+ # bzcmp, bzdiff, bz*grep, bzless, bzmore intentionally not here, see Debian: #455510
+ _install_xspec '!*.?(t)bz?(2)' bunzip2 bzcat pbunzip2 pbzcat lbunzip2 lbzcat
+-_install_xspec '!*.@(zip|[aegjswx]ar|exe|pk3|wsz|zargo|xpi|s[tx][cdiw]|sx[gm]|o[dt][tspgfc]|od[bm]|oxt|epub|apk|aab|ipa|do[ct][xm]|p[op]t[mx]|xl[st][xm]|pyz|whl)' unzip zipinfo
++_install_xspec '!*.@(zip|[aegjswx]ar|exe|pk3|wsz|zargo|xpi|s[tx][cdiw]|sx[gm]|o[dt][tspgfc]|od[bm]|oxt|epub|apk|aab|ipa|do[ct][xm]|p[op]t[mx]|xl[st][xm]|pyz|whl|[Ff][Cc][Ss]td)' unzip zipinfo
+ _install_xspec '*.Z' compress znew
+ # zcmp, zdiff, z*grep, zless, zmore intentionally not here, see Debian: #455510
+ _install_xspec '!*.@(Z|[gGd]z|t[ag]z)' gunzip zcat
diff --git a/debian/patches/series b/debian/patches/series
index e634ce02..e58441b0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
13-backport-support-for-python-9.patch
14-backport-support-for-long-options-in-perltidy.patch
15-find-exec.patch
+16-freecad-extension.patch