mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-21 14:46:14 +00:00
change method to detect patch version for libvorbis
This commit is contained in:
parent
f3ef5a0fb9
commit
66c97c3f8a
1 changed files with 8 additions and 1 deletions
|
@ -289,7 +289,14 @@ Linux client_static debian_amd64_strech build:
|
|||
- mkdir -p libvorbis
|
||||
- wget -q http://security.debian.org/debian-security/pool/updates/main/libv/libvorbis/libvorbis_1.3.5.orig.tar.gz -O libvorbis.tar.gz
|
||||
- tar xvf libvorbis.tar.gz -C libvorbis --strip 1 || exit 2
|
||||
- subversion=0; code=1; while [ $code -ne 0 -a $subversion -le 100 ] ; do subversion=$(( $subversion + 1 )); code=0; wget -q http://security.debian.org/debian-security/pool/updates/main/libv/libvorbis/libvorbis_1.3.5-4+deb9u$subversion.debian.tar.xz -O libvorbis.debian.tar.xz || code=1 ; done ; if [ $code -ne 0 ] ; then echo "Impossible to download patch libvorbis" >&2; exit $?; else echo "GET libvorbis_1.3.5-4+deb9u${subversion}.debian.tar.xz" ; fi
|
||||
# Get list package
|
||||
- wget -q http://security.debian.org/debian-security/pool/updates/main/libv/libvorbis -O list_libvorbis
|
||||
# get last patch for our release
|
||||
- line=$(egrep '(libvorbis_1.3.5)(.*)(tar[.]xz)' list_libvorbis | tail -n 1)
|
||||
# get only name of the patch
|
||||
- tmp=${line#*href} ; tmp2=${tmp%%>*} ; tmp3=${tmp2#*\"} ; namepatch=${tmp3%\"*}
|
||||
# download this patch
|
||||
- wget -q http://security.debian.org/debian-security/pool/updates/main/libv/libvorbis/$namepatch -O libvorbis.debian.tar.xz
|
||||
- tar xvf libvorbis.debian.tar.xz -C libvorbis || exit 2
|
||||
- cd libvorbis
|
||||
- for file in $(cat debian/patches/series); do patch -p1 < debian/patches/$file; done
|
||||
|
|
Loading…
Reference in a new issue