[debian-edu-commits] debian-edu/ 82/183: Updated comments where to make things clearer, reflect changes
Alexander Alemayhu
ccscanf-guest at moszumanska.debian.org
Wed Jun 11 16:48:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
ccscanf-guest pushed a commit to branch master
in repository desktop-profiles.
commit dfb8957cc3ceae59e6cee68a1dc82171f2f4892c
Author: Bart Cornelis <cobaco at linux.be>
Date: Wed Aug 3 10:39:55 2005 +0000
Updated comments where to make things clearer, reflect changes
---
20desktop-profiles_activateDesktopProfiles | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/20desktop-profiles_activateDesktopProfiles b/20desktop-profiles_activateDesktopProfiles
index b349982..76a5605 100644
--- a/20desktop-profiles_activateDesktopProfiles
+++ b/20desktop-profiles_activateDesktopProfiles
@@ -8,7 +8,9 @@
#
# Code in this file has a couple of debian-specific parts:
# - use of tempfile from debian-utils
+# (at start of execution, and in sort_profiles & activate_gnome functions)
# - hardcoded default values for the different GNUSTEP_*_ROOT env variables
+# (in activate_gnustep function below)
#
# (c) 2004-2005 Bart Cornelis <cobaco AT skolelinux no>
###############################################################################
@@ -23,7 +25,7 @@ if (test -r $LIB); then
else
# test for shell-library if absent then either:
# - the package installation is corrupt
- # - the pacakge is removed (this file is left as it's in /etc/ and
+ # - the package is removed (this file is left as it's in /etc/ and
# thus treated as a conffile
# We'll assume the latter.
echo "Shell library $LIB is missing -> assuming desktop-profiles is removed (but not purged)" >> $ERRFILE;
@@ -32,7 +34,8 @@ fi;
#########################################################################
# Sort all profiles that have their requirements met by kind
-# (result for each $KIND are saved in the file pointed to by $KIND_FILE)
+# (result for each $KIND is saved in the corresponding env variable
+# except for gnome which is saved in $GNOME_FILE, which is a tempfile)
#########################################################################
sort_profiles(){
@@ -219,6 +222,9 @@ activate_GCONF () {
#####################
# Start of execution
#####################
+
+# Check is needed, as this file is a conffile and thus left after package
+# deinstallation, yet it shouldn't do anything when the package is deinstalled
if (test $INSTALLED = true); then
#################################
# Check if user set any defaults
@@ -243,7 +249,9 @@ if (test $INSTALLED = true); then
# get temp file names
GCONF_FILE=`tempfile`;
- # sort the profile into the temp files
+ # sort the profiles, whose requirements are met into:
+ # - the appropriate environment variables
+ # - $GCONF_FILE
sort_profiles;
# activate the profiles of the active kinds
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/desktop-profiles.git
More information about the debian-edu-commits
mailing list