diff --git a/autoconf_share/rub1 b/autoconf_share/rub1
index 01a4fd3c300cf9028874df281c865294bbc2429b..4c14605f3e9d228971073143e083b2fafdc4721f 100755
--- a/autoconf_share/rub1
+++ b/autoconf_share/rub1
@@ -332,7 +332,9 @@ else
 fi
 
 # Add (leaf) package to the file to get correct build order.
-echo "$pkgname #-v$getvers" >> allpkg.tmp
+if test $conftype = 0; then
+  echo "$pkgname #-v$getvers" >> allpkg.tmp
+fi
 # Check out all packages as needed.
 if [ $recur != 0 ]; then
   for pkg in $pkgs