mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
simplify src download
This commit is contained in:
@@ -69,8 +69,7 @@ func installLocalPKGBUILD(
|
||||
return err
|
||||
}
|
||||
|
||||
cleanFunc := preparer.ShouldCleanMakeDeps(ctx)
|
||||
if cleanFunc != nil {
|
||||
if cleanFunc := preparer.ShouldCleanMakeDeps(ctx); cleanFunc != nil {
|
||||
installer.AddPostInstallHook(cleanFunc)
|
||||
}
|
||||
|
||||
@@ -79,6 +78,10 @@ func installLocalPKGBUILD(
|
||||
return err
|
||||
}
|
||||
|
||||
if cleanAURDirsFunc := preparer.ShouldCleanAURDirs(ctx, pkgBuildDirs); cleanAURDirsFunc != nil {
|
||||
installer.AddPostInstallHook(cleanAURDirsFunc)
|
||||
}
|
||||
|
||||
if err = installer.Install(ctx, cmdArgs, topoSorted, pkgBuildDirs); err != nil {
|
||||
if errHook := installer.RunPostInstallHooks(ctx); errHook != nil {
|
||||
text.Errorln(errHook)
|
||||
|
||||
Reference in New Issue
Block a user