Move pkg metadata to /var/cache/xbps/$pkgname.

--HG--
extra : convert_revision : 70e1199e8f7e577e0c8fc20bb8643fe6fca31bc7
This commit is contained in:
Juan RP 2008-12-16 10:22:24 +01:00
parent 3eed39a879
commit 710a7b8509
2 changed files with 4 additions and 4 deletions

View File

@ -130,7 +130,7 @@ list_pkg_files()
ver=$($XBPS_PKGDB_CMD version $pkg)
[ -z "$ver" ] && msg_error "$pkg is not installed."
cat $XBPS_PKGMETADIR/$pkg-$ver/flist
cat $XBPS_PKGMETADIR/$pkg/flist
}
#

View File

@ -55,7 +55,7 @@ stow_pkg()
# Copy metadata files into masterdir.
if [ -f xbps-metadata/flist -a -f xbps-metadata/props.plist ]; then
local metadir=$XBPS_PKGMETADIR/$pkgname-$version
local metadir=$XBPS_PKGMETADIR/$pkgname
mkdir -p $metadir
cp -f xbps-metadata/flist $metadir
cp -f xbps-metadata/props.plist $metadir
@ -104,7 +104,7 @@ unstow_pkg()
msg_error "$pkg is not installed."
fi
cd $XBPS_PKGMETADIR/$pkgname-$version || exit 1
cd $XBPS_PKGMETADIR/$pkgname || exit 1
if [ ! -f flist ]; then
msg_error "$pkg is incomplete, missing flist."
elif [ ! -O flist ]; then
@ -131,7 +131,7 @@ unstow_pkg()
done
# Remove metadata dir.
rm -rf $XBPS_PKGMETADIR/$pkgname-$version
rm -rf $XBPS_PKGMETADIR/$pkgname
$XBPS_PKGDB_CMD unregister $pkgname $ver
return $?