On 8.11.2013 14:19, Jean Delvare wrote:
Thus I'd like to add support for xz-compressed files to sequence-patch for a starter. I'm attaching the patch. It's only tested locally (outside of the suse network) so not all code paths were tested. Some more testing and review would be welcome.
I tested it with our mirror that only has linux-*.bz2 and it still works. I'll change it now to also fetch *.xz.
--- a/scripts/sequence-patch.sh +++ b/scripts/sequence-patch.sh @@ -135,6 +135,7 @@ apply_patches() { case $PATCH in *.gz) exec < <(gzip -cd $PATCH) ;; *.bz2) exec < <(bzip2 -cd $PATCH) ;; + *.xz) exec < <(xz -cd $PATCH) ;; *) exec < $PATCH ;; esac patch -d $PATCH_DIR --backup --prefix=$backup_dir/ -p1 -E $fuzz \ @@ -149,6 +150,7 @@ apply_patches() { case $PATCH in *.gz) exec < <(gzip -cd $PATCH) ;; *.bz2) exec < <(bzip2 -cd $PATCH) ;; + *.xz) exec < <(xz -cd $PATCH) ;; *) exec < $PATCH ;; esac
I'd just drop support for compressed patches. We never had them in the tree. Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org