forked from ALHP/ALHP.GO
replace warnings even if no newline is found
This commit is contained in:
@@ -454,7 +454,7 @@ func (p *ProtoPackage) isAvailable(h *alpm.Handle) bool {
|
|||||||
case p.DBPackage != nil && len(p.DBPackage.Packages) > 0:
|
case p.DBPackage != nil && len(p.DBPackage.Packages) > 0:
|
||||||
pkg, err = dbs.FindSatisfier(p.DBPackage.Packages[0])
|
pkg, err = dbs.FindSatisfier(p.DBPackage.Packages[0])
|
||||||
default:
|
default:
|
||||||
cmd := exec.Command("unbuffer", "pacsift", "--exact", "--base="+p.Pkgbase, "--repo="+p.Repo.String(),
|
cmd := exec.Command("unbuffer", "pacsift", "--exact", "--base="+p.Pkgbase, "--repo="+p.Repo.String(), //nolint:gosec
|
||||||
"--sysroot="+filepath.Join(conf.Basedir.Work, chrootDir, pristineChroot))
|
"--sysroot="+filepath.Join(conf.Basedir.Work, chrootDir, pristineChroot))
|
||||||
var res []byte
|
var res []byte
|
||||||
res, err = cmd.Output()
|
res, err = cmd.Output()
|
||||||
|
2
utils.go
2
utils.go
@@ -51,7 +51,7 @@ var (
|
|||||||
reReplaceSpecialChars = regexp.MustCompile(`(?m)[^a-zA-Z0-9_\-.]`)
|
reReplaceSpecialChars = regexp.MustCompile(`(?m)[^a-zA-Z0-9_\-.]`)
|
||||||
reReplaceUnderscore = regexp.MustCompile(`(?m)[_\-]{2,}`)
|
reReplaceUnderscore = regexp.MustCompile(`(?m)[_\-]{2,}`)
|
||||||
reReplaceTree = regexp.MustCompile(`(?m)^tree$`)
|
reReplaceTree = regexp.MustCompile(`(?m)^tree$`)
|
||||||
reReplacePacsiftWarning = regexp.MustCompile(`(?m)^warning:.*\n`)
|
reReplacePacsiftWarning = regexp.MustCompile(`(?m)^warning:.*\n*`)
|
||||||
)
|
)
|
||||||
|
|
||||||
type Conf struct {
|
type Conf struct {
|
||||||
|
Reference in New Issue
Block a user