diff options
| author | Jeff Carr <[email protected]> | 2025-10-11 14:44:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-11 15:17:49 -0500 |
| commit | f04861ee292708c9a48caa537e6c7cd9ffeaeec3 (patch) | |
| tree | f8d3fac82281d8dabc56c38003c3ebf86e7a00d4 /main.go | |
| parent | daef4bb9f1293ba83b1870e5ad3ba6c0083360f1 (diff) | |
arrrrgh
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -44,8 +44,12 @@ func main() { } } - r, err2 := shell.RunVerbose([]string{"rm", "-rf", "/home/mirrors/wit/dists"}) - log.Info(r, err2) + // r, err2 := shell.RunVerbose([]string{"rm", "-rf", "/home/mirrors/wit/dists"}) + // log.Info(r, err2) + 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"}) + // dists.working/sid/main/binary-amd64 if err := os.MkdirAll("/home/mirrors/wit/dists/sid/main/binary-amd64", 0755); err != nil { log.Info("did not work", err) @@ -156,8 +160,8 @@ func doNewest(arch string) (string, error) { return fullname, err } - shell.RunVerbose([]string{"gzip", "-f", fullname}) - // shell.RunVerbose([]string{"bzip2", "-f", "-k", fullname}) + shell.RunVerbose([]string{"gzip", "-k", "-d", fullname}) + shell.RunVerbose([]string{"bzip2", "-k", fullname}) allfiles, _ := FindFiles("dists/sid/main") for i, filename := range allfiles { |
