added '--keep' option
[util-vserver.git] / util-vserver / scripts / pkgmgmt
index 3cf380f..7f44aae 100755 (executable)
@@ -101,7 +101,7 @@ function _hashAuto()
        $_SED -e "s|^\([^$hash].*@autogenerated@\)|$hash$hash\1|" >$tmp
 
     $_CAT $tmp | $_EXEC_CD "$dir" "$(which cmp)" -s - "$file" || \
-       $_CHROOT_CAT -o "$1" <$tmp
+       $_CHROOT_SH truncate "$1" <$tmp
 
     $_RM -f $tmp
 }