diff options
author | Olivier Blin <blino@mageia.org> | 2010-11-25 11:39:23 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2010-11-25 11:39:23 +0000 |
commit | b773e26a264cb9c053aab33e5cc7dd07844f8649 (patch) | |
tree | 52bebbf2ded090a35a8cdee67bcd65f51fdd0bcd /emi | |
parent | 326fccb02700d0fa91aabc9e039a3cbb205254c9 (diff) | |
download | iurt-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-x | emi | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 ($!)"); |