FS-10881: Debian sources parsing support for args

This commit is contained in:
Mike Jerris 2018-01-08 15:57:17 -06:00
parent 78c189bfcc
commit 7f9e6f3e4b
1 changed files with 3 additions and 2 deletions

5
debian/util.sh vendored
View File

@ -255,12 +255,13 @@ EOF
get_sources () {
local tgt_distro="$1"
while read type path distro components; do
while read type args path distro components; do
test "$type" = deb || continue
if echo "$args" | grep -qv "\[" ; then components=$distro;distro=$path;path=$args;args=""; fi
prefix=`echo $distro | awk -F/ '{print $1}'`
suffix="`echo $distro | awk -F/ '{print $2}'`"
if test -n "$suffix" ; then full="$tgt_distro/$suffix" ; else full="$tgt_distro" ; fi
printf "$type $path $full $components\n"
printf "$type $args $path $full $components\n"
done < "$2"
}