gentoo: use /var/run for new /run compatibility
[util-vserver.git] / scripts / functions
index ee4e87f..2eac61f 100644 (file)
@@ -91,7 +91,7 @@ function isDirectoryEmpty
        shopt -s nullglob || *
 
        ignore_lostfound=1
-       test -z "$2" -o "$2" = 0 || ignore_lostfound=
+       test -n "$2" -a "$2" != 0 || ignore_lostfound=
        
        for i in "$1"/*; do
            case "$i" in
@@ -429,7 +429,7 @@ function _pkgMountYum
 
 function _pkgMountUrpmi
 {
-    :
+    _pkgMountBindDir "$RPMSTATEDIR" "$URPMISTATEDIR/../../../.rpmdb"
 }
 
 function _pkgMountRPM