Fix a typo where sx-build-release didn't upload the source package
[invirt/packages/invirt-dev.git] / sx-build-release
index acfb2d7..4e67c76 100755 (executable)
@@ -32,10 +32,13 @@ fi
 
 [ $Distribution = 'unstable' ] \
  || echo "$(basename $0): warning: Distribution is ${Distribution}, script expects unstable"
-changesfile="$(ls `pwd`/${Source}_*${Version}*.changes | grep -v 'source.changes$')"
-reprepro-env include unstable $changesfile
-reprepro-env copy stable unstable ${Source} \
-  $(perl '-F:\s+' -lane 'print $F[1]." " if /^Binary/' <$changesfile)
+changesfile=`pwd`/${Source}_*${Version}*.changes
+for i in $changesfile; do
+    reprepro-env include unstable $i
+    reprepro-env copy stable unstable \
+       $(perl '-F:\s+' -lane 'print $F[1]." " if /^Binary/' <$i)
+done
+reprepro-env copy stable unstable ${Source}
 
 cd ..
 rm -rf build-release