mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-08 12:28:00 -05:00
A few minor updates so --root works again.
This commit is contained in:
parent
fc361cc111
commit
716e9ef095
@ -5,7 +5,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: pacman\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2006-11-14 13:52-0600\n"
|
||||
"POT-Creation-Date: 2006-12-08 13:57-0600\n"
|
||||
"PO-Revision-Date: 2006-08-26 14:53+0200\n"
|
||||
"Last-Translator: Hungarian <frugalware-devel@frugalware.org>\n"
|
||||
"Language-Team: Hungarian <frugalware-devel@frugalware.org>\n"
|
||||
@ -513,8 +513,8 @@ msgstr ""
|
||||
# type: Plain text
|
||||
#: pacman.8:172
|
||||
msgid ""
|
||||
"Display all groups that a specified package is part of. If no package names "
|
||||
"are provided, all groups and members will be listed."
|
||||
"Display all package members of a named group, or all grouped packages if no "
|
||||
"name is specified."
|
||||
msgstr ""
|
||||
|
||||
# type: Plain text
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2006-11-14 13:52-0600\n"
|
||||
"POT-Creation-Date: 2006-12-08 13:57-0600\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -513,8 +513,8 @@ msgstr ""
|
||||
# type: Plain text
|
||||
#: pacman.8:172
|
||||
msgid ""
|
||||
"Display all groups that a specified package is part of. If no package names "
|
||||
"are provided, all groups and members will be listed."
|
||||
"Display all package members of a named group, or all grouped packages if no "
|
||||
"name is specified."
|
||||
msgstr ""
|
||||
|
||||
# type: Plain text
|
||||
|
@ -53,6 +53,7 @@ int config_free(config_t *config)
|
||||
return(-1);
|
||||
}
|
||||
|
||||
FREE(config->root);
|
||||
FREE(config->configfile);
|
||||
FREELIST(config->op_s_ignore);
|
||||
free(config);
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
typedef struct __config_t {
|
||||
/* command line options */
|
||||
const char *root;
|
||||
char *root;
|
||||
const char *dbpath;
|
||||
const char *cachedir;
|
||||
char *configfile;
|
||||
|
@ -356,10 +356,12 @@ static int parseargs(int argc, char *argv[])
|
||||
config->flags |= PM_TRANS_FLAG_PRINTURIS;
|
||||
break;
|
||||
case 'r':
|
||||
printf("setting root path=%s\n", optarg);
|
||||
if(realpath(optarg, root) == NULL) {
|
||||
perror(_("bad root path"));
|
||||
return(1);
|
||||
}
|
||||
config->root = strdup(root);
|
||||
break;
|
||||
case 's':
|
||||
config->op_s_search = 1;
|
||||
@ -488,7 +490,7 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
if(config->root == NULL) {
|
||||
config->root = PM_ROOT;
|
||||
config->root = strdup(PM_ROOT);
|
||||
}
|
||||
|
||||
/* initialize pm library */
|
||||
|
Loading…
Reference in New Issue
Block a user