repo

List, download and sync packs with remote repositories
Log | Files | Refs

commit d848175e1616dd7bf2a2ad2ad3cc3fc1030297d8
parent 782e12892286906e5cb3c244d96959725342dbb2
Author: z3bra <contactatz3bradotorg>
Date:   Fri Dec 16 10:23:33 +0100

Remove default repository

Diffstat:
repo.c | 5++---
repo.h | 1-
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/repo.c b/repo.c @@ -178,9 +178,8 @@ main (int argc, char *argv[]) usage(argv0); }ARGEND; - parseconf(&rlist, cfgfile); - if (TAILQ_EMPTY(&rlist)) - addrepo(&rlist, DEFREMOTEREPO); + if (!stat(cfgfile, &sb)) + parseconf(&rlist, cfgfile); if (sflag) { snprintf(fn, PATH_MAX, "%s/%s", DEFLOCALREPO, DEFLISTFILE); diff --git a/repo.h b/repo.h @@ -3,7 +3,6 @@ #define DEFLISTFILE ".list" #define DEFLOCALREPO "local" -#define DEFREMOTEREPO "http://127.0.0.1/pack" #define DEFCFGFILE "repo.conf" struct pack {