Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:AndreasSchwab
quilt
zstd.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File zstd.patch of Package quilt
Index: quilt-0.65/quilt/expand.in =================================================================== --- quilt-0.65.orig/quilt/expand.in +++ quilt-0.65/quilt/expand.in @@ -134,7 +134,7 @@ else fi combined_series=$(patch_file_name $combined_patch \ - | sed -e 's:\.gz$::' -e 's:\.bz2$::' -e 's:\.xz$::' -e 's:\.lzma$::').series + | sed -e 's:\.gz$::' -e 's:\.bz2$::' -e 's:\.xz$::' -e 's:\.lzma$::' -e 's:\.zst$::').series if ! [ -f "$combined_series" ] then Index: quilt-0.65/quilt/push.in =================================================================== --- quilt-0.65.orig/quilt/push.in +++ quilt-0.65/quilt/push.in @@ -135,6 +135,9 @@ apply_patch() elif [ "${patch_file:(-5)}" = ".lzma" ] then lzma -cd "$patch_file" | "$@" 2>&1 + elif [ "${patch_file:(-4)}" = ".zst" ] + then + zstd -cd "$patch_file" | "$@" 2>&1 else "$@" -i "$patch_file" 2>&1 fi Index: quilt-0.65/quilt/scripts/patchfns.in =================================================================== --- quilt-0.65.orig/quilt/scripts/patchfns.in +++ quilt-0.65/quilt/scripts/patchfns.in @@ -528,7 +528,7 @@ find_patch() local patch=${1#$SUBDIR_DOWN$QUILT_PATCHES/} local bre=$(quote_bre "$patch") - set -- $(sed -e "/^$bre\(\|\.patch\|\.diff\?\)\(\|\.gz\|\.bz2\|\.xz\|\.lzma\)\([ "$'\t'"]\|$\)/!d" \ + set -- $(sed -e "/^$bre\(\|\.patch\|\.diff\?\)\(\|\.gz\|\.bz2\|\.xz\|\.lzma\|\.zst\)\([ "$'\t'"]\|$\)/!d" \ -e 's/[ '$'\t''].*//' $SERIES) if [ $# -eq 1 ] then @@ -783,6 +783,8 @@ cat_file() xz -cd "$filename" ;; *.lzma) lzma -cd "$filename" ;; + *.zst) + zstd -cd "$filename" ;; *) cat "$filename" ;; esac @@ -823,6 +825,8 @@ cat_to_new_file() xz -c ;; *.lzma) lzma -c ;; + *.zst) + zstd -c ;; *) cat ;; esac \ @@ -937,7 +941,7 @@ next_filename() { local patch=$1 base num base=$(echo "$patch" \ - | sed -r -e 's:(\.gz|\.bz2|\.xz|\.lzma)$::' -e 's:(\.diff?|\.patch)$::') + | sed -r -e 's:(\.gz|\.bz2|\.xz|\.lzma|\.zst)$::' -e 's:(\.diff?|\.patch)$::') num=$(echo "$base" | sed -nre 's:.*-([0-9]+)$:\1:'p) [ -n "$num" ] || num=1 echo "${base%-$num}-$((num+1))${patch#$base}" Index: quilt-0.65/quilt/setup.in =================================================================== --- quilt-0.65.orig/quilt/setup.in +++ quilt-0.65/quilt/setup.in @@ -141,7 +141,7 @@ create_md5sums() ;; # In fast mode, we are only interested in patches, so filter out # archives - *.tar|*.tar.Z|*.tar.gz|*.tgz|*.tar.bz2|*.tar.xz|*.zip) + *.tar|*.tar.Z|*.tar.gz|*.tgz|*.tar.bz2|*.tar.xz|*.tar.zst|*.zip) [ -n "$QUILT_SETUP_FAST" ] && continue ;; esac @@ -161,6 +161,11 @@ create_md5sums() # files filetype="xz" ;; + *.zst) + # old versions of file don't know about zstd-compressed + # files + filetype="zst" + ;; *) filetype=$(file -b "$file") ;; @@ -191,6 +196,12 @@ create_md5sums() set -- $(lzma -cd "$file" | md5sum) echo "$1 $basename" ;; + zst*|Zstandard*) + echo -n "z" >&4 + echo "zstd -cd $file | md5sum" >&5 + set -- $(zstd -cd "$file" | md5sum) + echo "$1 $basename" + ;; esac done > $output echo >&4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor