From 5374e80d67c788be35687001fb09c71777c8f0de Mon Sep 17 00:00:00 2001 From: rhatto Date: Sun, 25 Jan 2009 00:45:01 +0000 Subject: minor fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@775 04377dda-e619-0410-9926-eae83683ac58 --- trunk/doc/CHANGELOG | 1 + trunk/lib/common.sh | 4 ++-- trunk/src/createpkg | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/trunk/doc/CHANGELOG b/trunk/doc/CHANGELOG index 6ce61ee..d4c6bf8 100644 --- a/trunk/doc/CHANGELOG +++ b/trunk/doc/CHANGELOG @@ -44,6 +44,7 @@ simplepkg changelog - config() on postinstall_script now accepting .dist and .sample config file extensions - added git_source section - createpkg: + - fakeroot support - new options --import, --status, --update and --commit to manage subversion repository, among others - subversion integration - minor changes diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 78b8be8..555ecbc 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -853,7 +853,7 @@ function su_svn { function chown_svn { # set svn folder ownership - if [ ! -z "$SVN_USER" ] && [ ! -e "$1" ]; then + if [ ! -z "$SVN_USER" ] && [ -e "$1" ]; then chown -R $SVN_USER $1 fi @@ -862,7 +862,7 @@ function chown_svn { function chgrp_svn { # set svn folder group - if [ ! -z "$SVN_GROUP" ] && [ ! -e "$1" ]; then + if [ ! -z "$SVN_GROUP" ] && [ -e "$1" ]; then chgrp -R $SVN_GROUP $1 fi diff --git a/trunk/src/createpkg b/trunk/src/createpkg index fdd855e..ee6a196 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -731,6 +731,7 @@ cd $SCRIPT_BASE if [ "`whoami`" != "root" ]; then FAKEROOT="`which fakeroot`" if [ "$?" == "0" ]; then + eecho $messag "Running SlackBuild with fakeroot." FAKEROOT="$FAKEROOT --" else eecho $messag "$BASENAME: WARNING: not running as root and no fakeroot found." -- cgit v1.2.3