[csw-users] bin/mkpackage and cleaning the package spool (patch)

Michael van der Westhuizen r1mikey at gmail.com
Wed Jun 4 11:58:29 CEST 2008


Hi,

When building packages as a user, the package spool cleanup portion of
bin/mkpackage requires user input when removing files with 0444
privileges.

This small patch corrects that.

Michael

Index: bin/mkpackage
===================================================================
--- bin/mkpackage       (revision 2141)
+++ bin/mkpackage       (working copy)
@@ -856,7 +856,7 @@
     my $pkgname = $config{pkgname};

     my $existing_pkgspool = catfile $spooldir, $pkgname;
-    vexec( "rm -r $existing_pkgspool", "Failed to remove $existing_pkgspool" )
+    vexec( "rm -rf $existing_pkgspool", "Failed to remove $existing_pkgspool" )
       if -d $existing_pkgspool;
 }



More information about the users mailing list