From: Jose V Beneyto Date: Mon, 8 Mar 2010 07:19:12 +0000 (+0100) Subject: fixed db usage for pkgadd-cross X-Git-Url: http://gitweb/?a=commitdiff_plain;h=5e3c934a0cb49770cfa8230d7787d9820de9b3ba;p=pkgutils-cross.git fixed db usage for pkgadd-cross --- diff --git a/pkgadd-cross b/pkgadd-cross index 8ecac21..d780311 100755 --- a/pkgadd-cross +++ b/pkgadd-cross @@ -12,6 +12,11 @@ if [ -z "$CLFS" ]; then exit 1 fi +if [ ! -f $CLFS/var/lib/pkg/db ]; then + install -d -m 0755 $CLFS/var/lib/pkg + touch $CLFS/var/lib/pkg/db +fi + $PKGADD -r $CLFS $@ # we shoudl avoid .la files when crosscompiling, these files