forked from ALHP/ALHP.GO
export non-makepkg flags, resolves #149
This commit is contained in:
@@ -145,7 +145,7 @@ func (p *ProtoPackage) build(ctx context.Context) (time.Duration, error) {
|
||||
// which leads to errors when it's trying to remove the same temporary download file.
|
||||
// This can be removed as soon as we can pass separate cache locations to makechrootpkg.
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
time.Sleep(time.Duration(rand.Float32()*60) * time.Second) //nolint:gosec
|
||||
time.Sleep(time.Duration(rand.Float32()*60) * time.Second) //nolint:gomnd,gosec
|
||||
start := time.Now().UTC()
|
||||
chroot := "build_" + uuid.New().String()
|
||||
|
||||
|
2
utils.go
2
utils.go
@@ -856,7 +856,7 @@ func parseFlagSection(section interface{}, makepkgConf, march string) (string, e
|
||||
if len(orgMatch) == 0 {
|
||||
// no match found, assume env var and append it
|
||||
log.Debugf("no match found for %s:%v, appending", subSec, subMap)
|
||||
makepkgConf += fmt.Sprintf("\n%s=%s", strings.ToUpper(subSec.(string)), replaceStringsFromMap(subMap.(string), replaceMap))
|
||||
makepkgConf += fmt.Sprintf("\nexport %s=%s", strings.ToUpper(subSec.(string)), replaceStringsFromMap(subMap.(string), replaceMap))
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user