tRemove default repository - repo - list/download/sync packs with remote repositories
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit d848175e1616dd7bf2a2ad2ad3cc3fc1030297d8
(DIR) parent 782e12892286906e5cb3c244d96959725342dbb2
(HTM) Author: z3bra <contactatz3bradotorg>
Date: Fri, 16 Dec 2016 10:23:33 +0100
Remove default repository
Diffstat:
M repo.c | 5 ++---
M repo.h | 1 -
2 files changed, 2 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/repo.c b/repo.c
t@@ -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);
(DIR) diff --git a/repo.h b/repo.h
t@@ -3,7 +3,6 @@
#define DEFLISTFILE ".list"
#define DEFLOCALREPO "local"
-#define DEFREMOTEREPO "http://127.0.0.1/pack"
#define DEFCFGFILE "repo.conf"
struct pack {