diff options
| -rw-r--r-- | main.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -44,8 +44,8 @@ func main() { } } - // r, err2 := shell.RunVerbose([]string{"rm", "-rf", "/home/mirrors/wit/dists"}) // log.Info(r, err2) + shell.RunVerbose([]string{"rm", "-rf", "/home/mirrors/wit/dists"}) shell.RunVerbose([]string{"rm", "f", "/home/mirrors/wit/dists/sid/InRelease"}) shell.RunVerbose([]string{"rm", "f", "/home/mirrors/wit/dists/sid/Release"}) shell.RunVerbose([]string{"rm", "f", "/home/mirrors/wit/dists/sid/Release.gpg"}) @@ -160,8 +160,12 @@ func doNewest(arch string) (string, error) { return fullname, err } - shell.RunVerbose([]string{"gzip", "-k", "-d", fullname}) - shell.RunVerbose([]string{"bzip2", "-k", fullname}) + r, err := shell.RunVerbose([]string{"gzip", "-k", fullname}) + log.Info(r, err) + // r, err := shell.RunVerbose([]string{"gzip", fullname}) + // panic("blah") + // shell.RunVerbose([]string{"bzip2", "-k", fullname}) + // shell.RunVerbose([]string{"bzip2", fullname}) allfiles, _ := FindFiles("dists/sid/main") for i, filename := range allfiles { |
