fix build directory permission

This commit is contained in:
guinux 2017-02-23 17:28:55 +01:00
parent b646c7c4b4
commit f4a8f8caba

View File

@ -1026,7 +1026,7 @@ namespace Pamac {
to_build.remove_all (); to_build.remove_all ();
string [] built_pkgs = {}; string [] built_pkgs = {};
int status = 1; int status = 1;
string builddir = "/tmp/pamac-build"; string builddir = "/tmp/pamac-build-%s".printf (Environment.get_user_name ());
status = yield spawn_in_term ({"mkdir", "-p", builddir}); status = yield spawn_in_term ({"mkdir", "-p", builddir});
if (status == 0) { if (status == 0) {
status = yield spawn_in_term ({"rm", "-rf", pkgname}, builddir); status = yield spawn_in_term ({"rm", "-rf", pkgname}, builddir);