summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/main.go b/main.go
index b5982c4..cbde6d5 100644
--- a/main.go
+++ b/main.go
@@ -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 {