[Mageia-sysadm] [141] create rejected directory if needed

root at mageia.org root at mageia.org
Thu Nov 25 12:39:23 CET 2010


Revision: 141
Author:   blino
Date:     2010-11-25 12:39:23 +0100 (Thu, 25 Nov 2010)
Log Message:
-----------
create rejected directory if needed

Modified Paths:
--------------
    build_system/iurt/trunk/emi

Modified: build_system/iurt/trunk/emi
===================================================================
--- build_system/iurt/trunk/emi	2010-11-25 11:37:17 UTC (rev 140)
+++ build_system/iurt/trunk/emi	2010-11-25 11:39:23 UTC (rev 141)
@@ -245,6 +245,7 @@
     } else {
 	# should send a mail or something
 	plog('ERR', "upload failed ($!), rejecting files in $reject/$path/");
+	mkdir_p("$reject/$path");
 	foreach my $rpm (@{$pkg_tree{$prefix}{rpms}}) {
 	    link "$done/$path/${prefix}_$rpm", "$reject/$path/${prefix}_$rpm";
 	    plog('ERR', "ERROR: link of $rpm failed ($!)");
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101125/049c1f21/attachment.html>


More information about the Mageia-sysadm mailing list