From 0f38300d33e111ed3362b2cef7274d1ef47df41a Mon Sep 17 00:00:00 2001 From: "Gabriel F. T. Gomes" Date: Sun, 3 Apr 2022 09:06:08 -0300 Subject: Backport recognition of freecad files as zip files --- debian/changelog | 1 + debian/patches/16-freecad-extension.patch | 21 +++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 23 insertions(+) create mode 100644 debian/patches/16-freecad-extension.patch 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 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 +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 -- cgit v1.2.1