Changed XBPS_META_PATH to /var/db/xbps rather than /var/cache/xbps.
--HG-- extra : convert_revision : 4e10af13ce05f060ebdfa8ca4e767a269c46b17f
This commit is contained in:
parent
1629f71053
commit
902fb71aa6
6 changed files with 14 additions and 20 deletions
|
@ -100,9 +100,9 @@ set_defvars()
|
|||
|
||||
: ${XBPS_TEMPLATESDIR:=$XBPS_DISTRIBUTIONDIR/templates}
|
||||
: ${XBPS_HELPERSDIR:=$XBPS_TEMPLATESDIR/helpers}
|
||||
: ${XBPS_CACHEDIR:=$XBPS_MASTERDIR/var/cache/xbps}
|
||||
: ${XBPS_META_PATH:=$XBPS_CACHEDIR/}
|
||||
: ${XBPS_PKGMETADIR:=$XBPS_CACHEDIR/metadata}
|
||||
: ${XBPS_DBDIR:=$XBPS_MASTERDIR/var/db/xbps}
|
||||
: ${XBPS_META_PATH:=$XBPS_DBDIR/}
|
||||
: ${XBPS_PKGMETADIR:=$XBPS_DBDIR/metadata}
|
||||
: ${XBPS_SHUTILSDIR:=$XBPS_DISTRIBUTIONDIR/shutils}
|
||||
|
||||
local DDIRS="XBPS_TEMPLATESDIR XBPS_HELPERSDIR XBPS_SHUTILSDIR"
|
||||
|
|
|
@ -10,13 +10,13 @@ with bzip2 and has the following structure:
|
|||
/var ------| => Package structure that will be installed.
|
||||
/etc ------|
|
||||
...
|
||||
/var/cache/xbps/metadata/$pkgname
|
||||
/var/cache/xbps/metadata/$pkgname/flist
|
||||
/var/cache/xbps/metadata/$pkgname/props.plist
|
||||
/var/cache/xbps/metadata/$pkgname/prepost-inst
|
||||
/var/cache/xbps/metadata/$pkgname/prepost-rm
|
||||
/var/db/xbps/metadata/$pkgname
|
||||
/var/db/xbps/metadata/$pkgname/flist
|
||||
/var/db/xbps/metadata/$pkgname/props.plist
|
||||
/var/db/xbps/metadata/$pkgname/prepost-inst
|
||||
/var/db/xbps/metadata/$pkgname/prepost-rm
|
||||
|
||||
Metadata info is stored in the "/var/cache/xbps/metadata/$pkgname"
|
||||
Metadata info is stored in the "/var/db/xbps/metadata/$pkgname"
|
||||
directory and two files will be always be present: flist and props.plist.
|
||||
|
||||
The flist file contains the list of files that the package will
|
||||
|
@ -87,7 +87,7 @@ index, add the repository into the pool and install the binary package.
|
|||
|
||||
Please note that by default, the xbps-* utils accept the -r flag, to specify
|
||||
the root directory for all operations, in that case the package will be
|
||||
installed into <rootdir> and metadata files into <rootdir>/var/cache/xbps.
|
||||
installed into <rootdir> and metadata files into <rootdir>/var/db/xbps.
|
||||
|
||||
Don't forget to set this flag if you aren't using xbps as the primary
|
||||
package manager in your system, otherwise it could overwrite some files!
|
||||
|
|
|
@ -19,7 +19,7 @@ main dictionary to specify more info, like:
|
|||
a remote location specified with "location-remote".
|
||||
|
||||
The package dictionary will be the same than the one available in
|
||||
package's metadata directory "/var/cache/xbps/metadata/$pkgname/props.plist",
|
||||
package's metadata directory "/var/db/xbps/metadata/$pkgname/props.plist",
|
||||
but some additional objects are added to provide enough info for
|
||||
the repository itself:
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include <archive_entry.h>
|
||||
|
||||
/* Default root PATH for xbps to store metadata info. */
|
||||
#define XBPS_META_PATH "/var/cache/xbps"
|
||||
#define XBPS_META_PATH "/var/db/xbps"
|
||||
|
||||
/* Filename for the repositories plist file. */
|
||||
#define XBPS_REPOLIST "repositories.plist"
|
||||
|
@ -47,12 +47,6 @@
|
|||
/* Filename of the packages register. */
|
||||
#define XBPS_REGPKGDB "regpkgdb.plist"
|
||||
|
||||
#define XBPS_PKG_ENOTINREPO -1 /* Not found in repo */
|
||||
#define XBPS_PKG_EEXIST -2 /* Already installed */
|
||||
#define XBPS_PKG_EINDEPS -3 /* Check deps failed */
|
||||
#define XBPS_PKG_ECHDIRDEST -4 /* chdir() to dest failed */
|
||||
#define XBPS_PKG_EEMPTY -5 /* empty pkg list */
|
||||
|
||||
#include "cmpver.h"
|
||||
#include "fexec.h"
|
||||
#include "humanize_number.h"
|
||||
|
|
|
@ -61,7 +61,7 @@ write_repo_pkgindex()
|
|||
#
|
||||
for i in $(echo $repodir/*.xbps); do
|
||||
pkgname="$(basename ${i%%-[0-9]*.*.$xbps_machine.xbps})"
|
||||
propsf="./var/cache/xbps/metadata/$pkgname/props.plist"
|
||||
propsf="./var/db/xbps/metadata/$pkgname/props.plist"
|
||||
cd $tmppkgdir && tar xfjp $i $propsf
|
||||
if [ $? -ne 0 ]; then
|
||||
msg_warn "Couldn't extract $(basename $i) metadata!"
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
xbps_write_metadata_pkg()
|
||||
{
|
||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||
local metadir=$destdir/var/cache/xbps/metadata/$pkgname
|
||||
local metadir=$destdir/var/db/xbps/metadata/$pkgname
|
||||
local prioinst=
|
||||
|
||||
if [ ! -d "$destdir" ]; then
|
||||
|
|
Loading…
Reference in a new issue