mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Fix bug in deleting files: If two ports had the same tarball and one of
them changed (or was removed from the tree) then portsnap would delete that file. This happened earlier today when one of two empty port directories was removed. Uniquifying the lists of needed files fixes this. 9.2-RELEASE candidate. MFC after: 3 days
This commit is contained in:
parent
5a3c920f45
commit
e08aa295d0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253224
@ -864,8 +864,8 @@ fetch_update() {
|
||||
echo "done."
|
||||
|
||||
# Remove files which are no longer needed
|
||||
cut -f 2 -d '|' tINDEX INDEX | sort > oldfiles
|
||||
cut -f 2 -d '|' tINDEX.new INDEX.new | sort | comm -13 - oldfiles |
|
||||
cut -f 2 -d '|' tINDEX INDEX | sort -u > oldfiles
|
||||
cut -f 2 -d '|' tINDEX.new INDEX.new | sort -u | comm -13 - oldfiles |
|
||||
lam -s "files/" - -s ".gz" | xargs rm -f
|
||||
rm patchlist filelist oldfiles
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user