]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10881: Debian sources parsing support for args
authorMike Jerris <mike@jerris.com>
Mon, 8 Jan 2018 21:57:17 +0000 (15:57 -0600)
committerMike Jerris <mike@jerris.com>
Tue, 9 Jan 2018 21:44:49 +0000 (15:44 -0600)
debian/util.sh

index 024a510869f6b01d25c836df88894cfd3ec6cc0c..885eb0ff650a820c45081a1b0932005d45f1d932 100755 (executable)
@@ -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"
 }