aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/common.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/common.sh b/lib/common.sh
index 3411f2c..a140ccb 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -108,7 +108,7 @@ function install_packages {
for pack in `cat $TEMPLATE | grep -v -e "^#" | cut -d : -f 1`; do
# try to install the package
- ROOT=/$root ARCH=$ARCH VERSION=$VERSION $SIMPLARET --install $pack
+ ROOT=/$root ARCH=$ARCH VERSION=$VERSION $SIMPLARET --install $pack --skip-checks
# check if the package was installed
installed=`eval "ls /$root/var/log/packages/ | egrep '^$pack-[^-]+-[^-]+-[^-]+$'"`
@@ -255,7 +255,11 @@ function eval_config {
function default_version {
# get version from /etc/slackware-version
- cat $1/etc/slackware-version | awk '{ print $2 }' | sed -e 's/.0$//'
+ if [ -f "$1/etc/slackware-version" ]; then
+ cat $1/etc/slackware-version | awk '{ print $2 }' | sed -e 's/.0$//'
+ else
+ echo "none"
+ fi
}