Commits

Anonymous committed a1aece4

Modified build-pusher to avoid removal of multiple kernel builds at remote pool

  • Participants
  • Parent commits be99f1b

Comments (0)

Files changed (1)

slave/usr/local/bin/build-pusher

 	version=$(pkgversion ${pkg})
 	pkgnam=$(pkgname ${pkg})
 	case "$pkgnam" in
-	    kernel-*)
-		rmtarget="${name}-${version}";;
+	    kernel, kernel-src, kernel-modules, kernel-src-stripped)
+	    ver=$(echo $version |cut -f 1-2 -d .)
+		rmtarget="${name}-${ver}*";;
 	    *)
-		rmtarget="${name}";;
+		rmtarget="${name}-[0-9]*";;
 	esac
 
 echo " + Processing ${pkg}"
 open sftp://$URL -u build-catcher,fakepass
 cd pool/veclinux-${VLVER}/${pooldir}
 echo " - Removing any previous ${name}-${version} builds at remote pool"
-queue glob rm -r ${rmtarget}-[0-9]*
+queue glob rm -r ${rmtarget}
 queue mput ${pkg}
-#queue mput ${name}-${version}-*
 queue !rm $LOCKFILE
 queue bye
 EOF