pm

barely a pack manager
git clone git://z3bra.org/pm
Log | Files | Refs | README | LICENSE

commit ed5ad22415c5b5461837d4506b2b8d197dbbf4f4
parent cf3db968258c30b55d3917616bb21df71acd40ed
Author: z3bra <willyatmailoodotorg>
Date:   Tue Jan  5 01:12:34 2016

Use environment to set DATA and ROOT dir

Diffstat:
 pm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pm.c b/pm.c @@ -12,8 +12,8 @@ #include "arg.h" -#define PACKAGE_ROOT "/ns/distro/rootfs" -#define PACKAGE_DATA "/ns/distro/rootfs/var/lib/pack" +#define PACKAGE_ROOT (getenv("ROOT")?getenv("ROOT"):"/ns/pm/rootfs") +#define PACKAGE_DATA (getenv("META")?getenv("META"):"/ns/pm/rootfs/metadata") #define PACKAGE_BUFF_SIZE 8192 #define PACKAGE_EXTENSION ".tar.bz2"