diff options
author | Norbert Preining <preining@logic.at> | 2008-10-18 08:01:04 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2008-10-18 08:01:04 +0000 |
commit | 101579fab0f92a2cd655010a6ecbc167cee88b9c (patch) | |
tree | cbb5fa30aa561af4495da274471e0ee62c650449 /Master/tlpkg/bin/tl-update-containers | |
parent | 64da0923ac052a55643433efcf5c630d2430b0c4 (diff) |
only remove a container if it is present
git-svn-id: svn://tug.org/texlive/trunk@11002 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-update-containers')
-rwxr-xr-x | Master/tlpkg/bin/tl-update-containers | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/tlpkg/bin/tl-update-containers b/Master/tlpkg/bin/tl-update-containers index d246dba4d8d..c78a9cd5eb9 100755 --- a/Master/tlpkg/bin/tl-update-containers +++ b/Master/tlpkg/bin/tl-update-containers @@ -284,8 +284,10 @@ sub main # remove old containers for my $op (@removecontainers) { - info("$0: $op container is old, removing it\n"); - `rm -f $opt_containerdir/$op.*` unless $opt_dry; + if (-r "$opt_containerdir/$op.tar.lzma") { + info("$0: $op container is old, removing it\n"); + `rm $opt_containerdir/$op.*` unless $opt_dry; + } } # next we remove those containers which have been gone! REMOVEPACK: for my $op (@removepacks) { |