summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-03-18 12:00:29 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-03-18 12:00:29 +0000
commit5ad28ea3d2e37b36e65c2c201384fa4c4c96f011 (patch)
treed32ae3cf91ec33a480a4dbdd8bc2befc5cd4d082 /solenv
parent3599f68bb4892ba1bbcd004292e118859466da78 (diff)
INTEGRATION: CWS sb83 (1.7.18); FILE MERGED
2008/01/29 15:12:27 sb 1.7.18.1: #i85112# merged in cws_src680_native121
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/modules/installer/profiles.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/solenv/bin/modules/installer/profiles.pm b/solenv/bin/modules/installer/profiles.pm
index 73bf3d2f96e0..8a4de79e3beb 100644
--- a/solenv/bin/modules/installer/profiles.pm
+++ b/solenv/bin/modules/installer/profiles.pm
@@ -4,9 +4,9 @@
#
# $RCSfile: profiles.pm,v $
#
-# $Revision: 1.7 $
+# $Revision: 1.8 $
#
-# last change: $Author: ihi $ $Date: 2007-11-26 16:18:16 $
+# last change: $Author: vg $ $Date: 2008-03-18 13:00:29 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@@ -170,6 +170,9 @@ sub create_profiles
my $profilegid = $oneprofile->{'gid'};
my $profilename = $oneprofile->{'Name'};
+ my $localprofilesdir = $profilesdir . $installer::globals::separator . $profilegid; # uniqueness guaranteed by gid
+ if ( ! -d $localprofilesdir ) { installer::systemactions::create_directory($localprofilesdir); }
+
my @onefile = ();
my $profileempty = 1;
@@ -216,7 +219,7 @@ sub create_profiles
}
# Saving the profile as a file
- $completeprofilename = $profilesdir . $installer::globals::separator . $profilename;
+ $completeprofilename = $localprofilesdir . $installer::globals::separator . $profilename;
installer::files::save_file($completeprofilename, $onefileref);