diff options
author | Francois Pons <fpons@mandriva.com> | 2003-07-31 16:18:25 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-07-31 16:18:25 +0000 |
commit | 59becca76c57d01139fd0c459aeae2610f3e7b69 (patch) | |
tree | f3f31ba7cbd0e636956ffcd315c66f2cbbe8cbd6 | |
parent | 6da3edc36cee66520c74da74618f2d254c078541 (diff) | |
download | urpmi-59becca76c57d01139fd0c459aeae2610f3e7b69.tar urpmi-59becca76c57d01139fd0c459aeae2610f3e7b69.tar.gz urpmi-59becca76c57d01139fd0c459aeae2610f3e7b69.tar.bz2 urpmi-59becca76c57d01139fd0c459aeae2610f3e7b69.tar.xz urpmi-59becca76c57d01139fd0c459aeae2610f3e7b69.zip |
use a file opened in write mode instead of opening a directory.
-rw-r--r-- | urpm.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2475,7 +2475,7 @@ sub exlock_urpmi_db { my ($LOCK_EX, $LOCK_NB) = (2, 4); #- lock urpmi database, but keep lock to wait for an urpmi.update to finish. - open LOCK_FILE, $urpm->{statedir}; + open LOCK_FILE, ">$urpm->{statedir}/.LOCK"; flock LOCK_FILE, $LOCK_EX|$LOCK_NB or $urpm->{fatal}(7, N("urpmi database locked")); } |