From 9ed605710d1acdb16a12b47a2c83474cebd5c819 Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 18 Jan 2007 01:54:06 +0000 Subject: lots of changes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@108 04377dda-e619-0410-9926-eae83683ac58 --- src/simplaret | 91 ++++++++++++++++------------------------------------------- 1 file changed, 24 insertions(+), 67 deletions(-) (limited to 'src/simplaret') diff --git a/src/simplaret b/src/simplaret index c47e093..fd5a8b3 100755 --- a/src/simplaret +++ b/src/simplaret @@ -16,10 +16,16 @@ # Place - Suite 330, Boston, MA 02111-1307, USA # -SIMPLARET_CONF="/etc/simplepkg/simplepkg.conf" REPOS_CONF="/etc/simplepkg/repos.conf" COMMON="/usr/libexec/simplepkg/common.sh" +if [ -f "$COMMON" ]; then + source $COMMON +else + echo "error: file $COMMON found, check your `basename $0` installation" + exit 1 +fi + function simplaret_usage { echo "usage: [ARCH=otherarch] [VERSION=otherversion] `basename $0`