diff options
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2008-11-17 17:02:43 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-11-30 23:38:37 +0100 |
commit | a50b067470a8046dabdff66f6266d2208b2f8372 (patch) | |
tree | 0e6c41887d50369bc6f72bddf5bdffc87dce13cb /pactest/tests/ldconfig001.py | |
parent | 346139298bc547d1cbeb5d41f2067577b96ff1fa (diff) | |
download | pacman-a50b067470a8046dabdff66f6266d2208b2f8372.tar.gz pacman-a50b067470a8046dabdff66f6266d2208b2f8372.tar.xz |
Give an error message on alpm_db_register_sync() error
This patch slightly modifies pacman.c/_parseconfig():
See FS#12148. Now pacman prints the following error message in that case:
"error: could not register 'unstable' database (could not open database)"
I also added an error message for alpm_db_setserver() error.
I changed the "return(1);" scheme to "ret = 1; goto cleanup;" to make
sure that we free allocated memory and close open files.
Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/tests/ldconfig001.py')
0 files changed, 0 insertions, 0 deletions