diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-06-21 14:56:03 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-06-21 14:56:03 +0000 |
commit | 658b7b13db370b0ffe58a0e15eeb21606c57a3a8 (patch) | |
tree | 0484e0f5d34dc33840f6c188c9504fcbed8ad0c3 | |
parent | bbb67b72977d0c04cec6108ebac0b21315cfe720 (diff) | |
download | rpmtools-658b7b13db370b0ffe58a0e15eeb21606c57a3a8.tar rpmtools-658b7b13db370b0ffe58a0e15eeb21606c57a3a8.tar.gz rpmtools-658b7b13db370b0ffe58a0e15eeb21606c57a3a8.tar.bz2 rpmtools-658b7b13db370b0ffe58a0e15eeb21606c57a3a8.tar.xz rpmtools-658b7b13db370b0ffe58a0e15eeb21606c57a3a8.zip |
ensure no hard link is used
-rw-r--r-- | genhdlist2 | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -197,6 +197,7 @@ sub generate_md5sum { my ($media_info_dir) = @_; print "updating $media_info_dir/MD5SUM\n" if $verbose >= 0; my $m = `cd '$media_info_dir' ; /usr/bin/md5sum hdlist.cz synthesis.hdlist.cz`; + unlink "$media_info_dir/MD5SUM"; # ensure no hard link is used open my $f, '>', "$media_info_dir/MD5SUM" or die "Can't write MD5SUM: $!\n"; print $f $m; } |