aboutsummaryrefslogtreecommitdiffstats
path: root/emi
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2010-11-25 11:39:23 +0000
committerOlivier Blin <blino@mageia.org>2010-11-25 11:39:23 +0000
commitb773e26a264cb9c053aab33e5cc7dd07844f8649 (patch)
tree52bebbf2ded090a35a8cdee67bcd65f51fdd0bcd /emi
parent326fccb02700d0fa91aabc9e039a3cbb205254c9 (diff)
downloadiurt-b773e26a264cb9c053aab33e5cc7dd07844f8649.tar
iurt-b773e26a264cb9c053aab33e5cc7dd07844f8649.tar.gz
iurt-b773e26a264cb9c053aab33e5cc7dd07844f8649.tar.bz2
iurt-b773e26a264cb9c053aab33e5cc7dd07844f8649.tar.xz
iurt-b773e26a264cb9c053aab33e5cc7dd07844f8649.zip
create rejected directory if needed
Diffstat (limited to 'emi')
-rwxr-xr-xemi1
1 files changed, 1 insertions, 0 deletions
diff --git a/emi b/emi
index c8f3277..85f8eb1 100755
--- a/emi
+++ b/emi
@@ -245,6 +245,7 @@ foreach my $prefix (keys %pkg_tree) {
} 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 ($!)");