summaryrefslogtreecommitdiff
path: root/doMakeDists.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-09 20:00:39 -0500
committerJeff Carr <[email protected]>2025-10-09 20:06:39 -0500
commit5cc996fb000749369a339b850c1f2f2218892537 (patch)
tree4e6818c93fd5d6257d7fdfae0d993acdaadef736 /doMakeDists.go
parent6910b06ff957337af42f89c1a19072cb75c0ae74 (diff)
nearing ability to create dists/v0.0.16
Diffstat (limited to 'doMakeDists.go')
-rw-r--r--doMakeDists.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/doMakeDists.go b/doMakeDists.go
new file mode 100644
index 0000000..fa61227
--- /dev/null
+++ b/doMakeDists.go
@@ -0,0 +1,17 @@
+package main
+
+import (
+ "go.wit.com/log"
+)
+
+// os.Chdir(me.mirrorsDir)
+// makes the dists/ for 'apt update'
+func doMakeDists(mirrorshome string) (string, error) {
+ if me.pb.BaseDir != mirrorshome {
+ log.Info("Changing mirrors base directory", me.pb.BaseDir, mirrorshome)
+ me.pb.BaseDir = mirrorshome
+ }
+
+ s, err := me.pb.MakeDists()
+ return s, err
+}