Do not include key id in dpkg build package
[invirt/packages/invirt-dev.git] / sx-build-release
index a23b03e..472983d 100755 (executable)
@@ -15,7 +15,7 @@ cd build-release/$package
 eval  `perl '-F:\s+' -lane 'print  $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \
     <(dpkg-parsechangelog)`
 
-dpkg-buildpackage -us -uc -rfakeroot
+dpkg-buildpackage  -rfakeroot
 
 if ! svn ls $svnuri/package_tags/$Source >/dev/null 2>&1; then
   svn mkdir $svnuri/package_tags/$Source \
@@ -29,8 +29,12 @@ else
 fi
 
 cd ..
-reprepro-env include unstable `pwd`/${Source}_*${Version}*.changes
-reprepro-env include stable   `pwd`/${Source}_*${Version}*.changes
+[ $Distribution = 'unstable' ] \
+ || echo "$(basename $0): warning: Distribution is ${Distribution}, script expects unstable"
+changesfile=`pwd`/${Source}_*${Version}*.changes
+reprepro-env include unstable $changesfile
+reprepro-env copy stable unstable ${Source} \
+  $(perl '-F:\s+' -lane 'print $F[1]." " if /^Binary/' <$changesfile)
 
 cd ..
 rm -rf build-release