CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
fixed db usage for pkgadd-cross
authorJose V Beneyto <sepen@crux.nu>
Mon, 8 Mar 2010 07:19:12 +0000 (08:19 +0100)
committerJose V Beneyto <sepen@crux.nu>
Mon, 8 Mar 2010 07:19:21 +0000 (08:19 +0100)
pkgadd-cross

index 8ecac21927a0dbb003b7c823001650f6b551e8de..d780311818e27a9481724d7d495bd6c4f70a7dd9 100755 (executable)
@@ -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