diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-06-15 16:33:46 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-06-15 16:33:46 +0000 |
commit | 42b8bd791c7d9fa739867ae279467ad7aa9c36af (patch) | |
tree | e0b3aee25681f7247ae4552c9a50d92e56930587 /genhdlist2 | |
parent | 78ec68f2d0e83f9d94dbb98c3fc17e670e697370 (diff) | |
download | rpmtools-42b8bd791c7d9fa739867ae279467ad7aa9c36af.tar rpmtools-42b8bd791c7d9fa739867ae279467ad7aa9c36af.tar.gz rpmtools-42b8bd791c7d9fa739867ae279467ad7aa9c36af.tar.bz2 rpmtools-42b8bd791c7d9fa739867ae279467ad7aa9c36af.tar.xz rpmtools-42b8bd791c7d9fa739867ae279467ad7aa9c36af.zip |
add --nolock option
Diffstat (limited to 'genhdlist2')
-rw-r--r-- | genhdlist2 | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -20,6 +20,7 @@ sub main() { 'clean' => \$options{no_incremental}, 'no-bad-rpm' => \$options{no_bad_rpm}, 'no-md5sum' => \$options{no_md5sum}, + 'nolock' => \$options{nolock}, 'file-deps=s' => \$options{file_deps}, 'h|help' => sub { usage(); exit 0 }, 'q|quiet' => sub { $options{verbose} = -1 }, @@ -52,7 +53,7 @@ sub do_it { my $lock_file = "$media_info_dir/UPDATING"; $tmp_header = "$media_info_dir/.tmp-header"; - my $lock = lock_file($lock_file); + my $lock = !$options{nolock} && lock_file($lock_file); $SIG{INT} = sub { unlink "$hdlist.tmp", "$synthesis.tmp", $tmp_header; @@ -229,6 +230,10 @@ Do not generate MD5SUM file. Do not abort on bad rpms. +=item B<--nolock> + +Don't lock the media (can be useful when locks fail, eg NFS) + =item --clean Do not use existing hdlist.cz, build hdlist from scratch |