summaryrefslogtreecommitdiff
path: root/doMakeDists.go
blob: 822b38c6161bb90272f7309dbaacfdce30b84126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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("Changed mirrors base directory", me.pb.BaseDir, mirrorshome)
		me.pb.BaseDir = mirrorshome
	}

	s, err := me.pb.MakeDists()
	return s, err
}