Random fixups

This commit is contained in:
morganamilo 2019-04-23 17:03:09 +01:00
parent 112046853b
commit 6415c23be2
No known key found for this signature in database
GPG Key ID: 6FE9E7996B0B082E
3 changed files with 5 additions and 11 deletions

View File

@ -99,12 +99,6 @@ func gitMerge(path string, name string) error {
return nil
}
func gitDiff(path string, name string) error {
err := show(passToGit(filepath.Join(path, name), "diff", "HEAD..HEAD@{upstream}"))
return err
}
// DownloadAndUnpack downloads url tgz and extracts to path.
func downloadAndUnpack(url string, path string) error {
err := os.MkdirAll(path, 0755)
@ -140,6 +134,10 @@ func getPkgbuilds(pkgs []string) error {
pkgs = removeInvalidTargets(pkgs)
aur, repo, err := packageSlices(pkgs)
if err != nil {
return err
}
for n := range aur {
_, pkg := splitDBFromName(aur[n])
aur[n] = pkg

View File

@ -98,10 +98,6 @@ func passToPacman(args *arguments) *exec.Cmd {
}
func passToMakepkg(dir string, args ...string) *exec.Cmd {
if config.NoConfirm {
args = append(args)
}
mflags := strings.Fields(config.MFlags)
args = append(args, mflags...)