Index: trunk/packages/sipb-xen-dev/sx-build-release
===================================================================
--- trunk/packages/sipb-xen-dev/sx-build-release	(revision 469)
+++ trunk/packages/sipb-xen-dev/sx-build-release	(revision 470)
@@ -30,6 +30,10 @@
 
 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 ..
