pkgtools

morpheus pkg tools
git clone git://git.2f30.org/pkgtools.git
Log | Files | Refs | README | LICENSE

commit 4a6d77c4a6c8c981cbcc1babaa5900c33e9597d4
parent 19d5d7b4eccdd59a0a66ce94c62a1d474fc9b7eb
Author: sin <sin@2f30.org>
Date:   Fri Jun 20 16:36:02 +0100

No need to do a pkg_load()

Diffstat:
infopkg.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/infopkg.c b/infopkg.c @@ -78,12 +78,11 @@ own_pkg_cb(struct db *db, struct pkg *pkg, void *file) struct pkgentry *pe; struct stat sb1, sb2; + (void) db; + if (lstat(path, &sb1) < 0) eprintf("lstat %s:", path); - if (pkg_load(db, pkg) < 0) - exit(EXIT_FAILURE); - for (pe = pkg->head; pe; pe = pe->next) { if (lstat(pe->path, &sb2) < 0) { weprintf("lstat %s:", pe->path);