summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-11 15:15:53 -0500
committerJeff Carr <[email protected]>2025-10-11 15:17:59 -0500
commit05363ddbb7c0cd4d868767d32c362f457eb3ae7d (patch)
treef6036ae870251c53dc7c24053ba96db222a3eece
parentf04861ee292708c9a48caa537e6c7cd9ffeaeec3 (diff)
apt doesn't seem to work without the 'Packages' filev0.0.19
-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 {