summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-11 14:30:52 -0500
committerJeff Carr <[email protected]>2025-10-11 15:17:38 -0500
commitdaef4bb9f1293ba83b1870e5ad3ba6c0083360f1 (patch)
treeb3ea8f1fde94a47159884c78def5baf75af6a4a5 /main.go
parent75c9e564d93f2c482434502bc2eea7bd39a32fb0 (diff)
don't use bz2. also dump all the old shit
Diffstat (limited to 'main.go')
-rw-r--r--main.go15
1 files changed, 12 insertions, 3 deletions
diff --git a/main.go b/main.go
index 57bec63..cbbfe24 100644
--- a/main.go
+++ b/main.go
@@ -44,6 +44,15 @@ func main() {
}
}
+ r, err2 := shell.RunVerbose([]string{"rm", "-rf", "/home/mirrors/wit/dists"})
+ log.Info(r, err2)
+ // 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)
+ } else {
+ log.Info("did work")
+ }
+
if me.pb.BaseDir != "/home/mirrors/wit" {
me.pb.Filename = "/home/mirrors/wit/mirrors.wit.com.pb"
me.pb.BaseDir = "/home/mirrors/wit"
@@ -142,13 +151,13 @@ func doNewest(arch string) (string, error) {
myshit += controlfile + "\n"
}
- fullname := "/home/mirrors/wit/first.Packages"
+ fullname := "/home/mirrors/wit/dists/sid/main/binary-amd64/Packages"
if err := os.WriteFile(fullname, []byte(myshit), 0644); err != nil {
return fullname, err
}
- shell.RunVerbose([]string{"gzip", "-f", "-k", fullname})
- shell.RunVerbose([]string{"bzip2", "-f", "-k", fullname})
+ shell.RunVerbose([]string{"gzip", "-f", fullname})
+ // shell.RunVerbose([]string{"bzip2", "-f", "-k", fullname})
allfiles, _ := FindFiles("dists/sid/main")
for i, filename := range allfiles {