From 0348a3112ca460e3afdd5babf9251033f114b12f Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 28 Jul 2018 04:09:15 -0400 Subject: sbosrcarch: remove STATUS.old --- sbosrcarch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sbosrcarch b/sbosrcarch index 8e1956c..e7f1a2b 100755 --- a/sbosrcarch +++ b/sbosrcarch @@ -1734,8 +1734,7 @@ sub check_info_wanted { } # write status results to STATUS file in the root of the archive -# dir. if there's an old STATUS, it gets renamed to STATUS.old. -# errors will be silently ignored (e.g. permission denied). +# dir. errors will be silently ignored (e.g. permission denied). sub write_status_file { my $content = shift; @@ -1746,7 +1745,6 @@ sub write_status_file { chomp(my $logline = `TZ=UTC git log --date=format-local:'%a %Y-%m-%d %H:%M:%S %Z' --pretty=format:'%h %cd: %an, %s' -n1`); chdir($archivedir) or die "$archivedir: $!"; - rename("STATUS", "STATUS.old"); # ignore errors open(my $fh, '>', "STATUS") or return; chomp(my $timestamp = `TZ=UTC date '+%a %Y-%m-%d %H:%M:%S %Z'`); -- cgit v1.2.3