diff options
author | Jan Holesovsky <kendy@suse.cz> | 2013-07-10 07:52:44 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-07-10 07:53:52 +0200 |
commit | 2126303ec6acc70f18289dcfddeaaea6b08b7915 (patch) | |
tree | 3cad45b04051d5506da9668052bad8d2c308c9a5 /setup_native | |
parent | 575f789f93fd0ef00987afa51a8e4ce2d8089287 (diff) |
Use mkdtemp() so that 2 builds can package at the same time.
Change-Id: I86d01c3ec1267495bd664108fdcf2e5533d97430
Diffstat (limited to 'setup_native')
-rw-r--r-- | setup_native/scripts/admin.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/setup_native/scripts/admin.pl b/setup_native/scripts/admin.pl index 6fa2388b8ae5..b7f4ce64db08 100644 --- a/setup_native/scripts/admin.pl +++ b/setup_native/scripts/admin.pl @@ -18,6 +18,7 @@ use Cwd; use File::Copy; +use File::Temp qw/ :mktemp /; ################################################################################# # Global settings @@ -29,7 +30,7 @@ BEGIN $targetdir = ""; $databasepath = ""; $starttime = ""; - $globaltempdirname = "ooopackaging"; + $globaltempdirname = "ooopackagingXXXXXX"; $savetemppath = ""; $msiinfo_available = 0; $path_displayed = 0; @@ -961,7 +962,7 @@ sub get_temppath $temppath =~ s/\Q$separator\E\s*$//; # removing ending slashes and backslashes $temppath = $temppath . $separator . $globaltempdirname; - create_directory_with_privileges($temppath, "777"); + $temppath = mkdtemp($temppath); my $dirsave = $temppath; |