mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
used defines from alpm.h instead of local ones (patch from VMiklos <vmiklos@frugalware.org>)
This commit is contained in:
parent
0fe69d030b
commit
289b75d576
@ -122,7 +122,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if(config->root == NULL) {
|
||||
config->root = strdup(PACROOT);
|
||||
config->root = strdup(PM_ROOT);
|
||||
}
|
||||
|
||||
/* add a trailing '/' if there isn't one */
|
||||
@ -148,10 +148,10 @@ int main(int argc, char *argv[])
|
||||
cleanup(1);
|
||||
}
|
||||
if(config->dbpath == NULL) {
|
||||
config->dbpath = strdup(PACDB);
|
||||
config->dbpath = strdup(PM_DBPATH);
|
||||
}
|
||||
if(config->cachedir == NULL) {
|
||||
config->cachedir = strdup(PACCACHE);
|
||||
config->cachedir = strdup(PM_CACHEDIR);
|
||||
}
|
||||
|
||||
/* set library parameters */
|
||||
|
@ -21,9 +21,6 @@
|
||||
#ifndef _PM_PACMAN_H
|
||||
#define _PM_PACMAN_H
|
||||
|
||||
#define PACROOT "/"
|
||||
#define PACDB "var/lib/pacman"
|
||||
#define PACCACHE "var/cache/pacman"
|
||||
#define PACCONF "/etc/pacman.conf"
|
||||
|
||||
/* Operations */
|
||||
|
Loading…
Reference in New Issue
Block a user