forked from cromer/pamac-classic
use pkgbase name for yaourt to avoid multiple builds
This commit is contained in:
parent
70fe12c83c
commit
6daf46f419
@ -928,7 +928,7 @@ namespace Pamac {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void build_aur_packages () {
|
public async void build_aur_packages () {
|
||||||
string action = dgettext (null, "Building packages") + "...";
|
string action = dgettext (null, "Building packages") + "...";
|
||||||
reset_progress_box (action);
|
reset_progress_box (action);
|
||||||
term.grab_focus ();
|
term.grab_focus ();
|
||||||
@ -940,7 +940,14 @@ namespace Pamac {
|
|||||||
cmds += "--noconfirm";
|
cmds += "--noconfirm";
|
||||||
}
|
}
|
||||||
foreach (unowned string name in to_build) {
|
foreach (unowned string name in to_build) {
|
||||||
cmds += name;
|
AURPackageDetails details = yield get_aur_details (name);
|
||||||
|
if (details.name != "") {
|
||||||
|
if (!(details.packagebase in cmds)) {
|
||||||
|
cmds += details.packagebase;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
cmds += name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Pid child_pid;
|
Pid child_pid;
|
||||||
spawn_in_term (cmds, out child_pid);
|
spawn_in_term (cmds, out child_pid);
|
||||||
@ -1462,7 +1469,7 @@ namespace Pamac {
|
|||||||
|| to_load.length != 0) {
|
|| to_load.length != 0) {
|
||||||
spawn_in_term ({"echo", dgettext (null, "Transaction successfully finished") + ".\n"});
|
spawn_in_term ({"echo", dgettext (null, "Transaction successfully finished") + ".\n"});
|
||||||
}
|
}
|
||||||
build_aur_packages ();
|
build_aur_packages.begin ();
|
||||||
} else {
|
} else {
|
||||||
clear_previous_lists ();
|
clear_previous_lists ();
|
||||||
if (sysupgrade_after_trans) {
|
if (sysupgrade_after_trans) {
|
||||||
|
Loading…
Reference in New Issue
Block a user