Fix compile-time error with de.po, runtime error with db.c

One string in de.po differed pretty strongly with its translated version.
It may still be totally wrong as far as translations go, but it compiles
now. Get translater to check.

Also, ensure the proper dbpath gets set in the db when it's created.

Signed-off-by: Travis Willard <travis@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Travis Willard 2007-09-03 21:28:17 -04:00 committed by Dan McGee
parent b3a1619457
commit 824b7fd27b
2 changed files with 6 additions and 2 deletions

View File

@ -783,7 +783,11 @@ pmdb_t *_alpm_db_register_sync(const char *treename)
}
}
db = _alpm_db_new(dbpath, treename);
/* Ensure the db gets the real path. */
path[0] = '\0';
snprintf(path, PATH_MAX, "%ssync/", dbpath);
db = _alpm_db_new(path, treename);
if(db == NULL) {
RET_ERR(PM_ERR_DB_CREATE, NULL);
}

View File

@ -174,7 +174,7 @@ msgstr "Datenbank-Pfad ist nicht definiert"
#: lib/libalpm/deps.c:187
msgid "dependency cycle detected\n"
msgstr "Abhängigkeits-Zyklus entdeckt: %s"
msgstr "Abhängigkeits-Zyklus entdeckt\n"
#: lib/libalpm/deps.c:646
#, c-format