aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-24 16:00:11 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-24 16:00:11 +0000
commit8434480eab56c2c1a854f3bbf5afba01e5a7ae9a (patch)
tree24b55cfed071f6ad689aedfa79b05bb3c512299d /lib
parent680ca3320037625ec350fff3f0d301a368f5d983 (diff)
downloadiurt-8434480eab56c2c1a854f3bbf5afba01e5a7ae9a.tar
iurt-8434480eab56c2c1a854f3bbf5afba01e5a7ae9a.tar.gz
iurt-8434480eab56c2c1a854f3bbf5afba01e5a7ae9a.tar.bz2
iurt-8434480eab56c2c1a854f3bbf5afba01e5a7ae9a.tar.xz
iurt-8434480eab56c2c1a854f3bbf5afba01e5a7ae9a.zip
fix not using File::lockf
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/Config.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Iurt/Config.pm b/lib/Iurt/Config.pm
index 83251dd..9e539a8 100644
--- a/lib/Iurt/Config.pm
+++ b/lib/Iurt/Config.pm
@@ -7,6 +7,7 @@ use MDK::Common;
use Iurt::Util qw(plog);
use strict;
use Sys::Hostname;
+use File::lockf;
our @EXPORT = qw(
config_usage
@@ -214,7 +215,6 @@ sub dump_cache_par {
if (!$status) {
unlink $filename;
link "$filename.tmp.$daydate", $filename;
- # FIXME: File::lockf isn't use(d) or require(d) and isn't even in the distro
File::lockf::ulock($file);
} else {
plog('WARN', "WARNING: locking the cache file $filename failed (status $status $!), try to lock manually");