From 4179308606426a27de703023e810255766b0ca2d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 28 Oct 2008 08:01:05 +0100 Subject: [PATCH] Missed xbps-pkgdb.c in previous commit. --HG-- extra : convert_revision : 5c064f4c4fb4352d0f50180a295b0b2f28f3a463 --- utils/xbps-pkgdb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/xbps-pkgdb.c b/utils/xbps-pkgdb.c index 98c63919728..478d9293c42 100644 --- a/utils/xbps-pkgdb.c +++ b/utils/xbps-pkgdb.c @@ -122,13 +122,13 @@ main(int argc, char **argv) } prop_dictionary_set_cstring_nocopy(dbdict, argv[2], argv[3]); if (!prop_dictionary_externalize_to_file(dbdict, dbfile)) { - perror(" ERROR: couldn't write database file"); + perror("ERROR: couldn't write database file"); exit(1); } } - printf("%s==> %s-%s registered successfully.\n", - in_chroot ? "[chroot] " : "", argv[2], argv[3]); + printf("%s%s-%s registered successfully.\n", + in_chroot ? "[chroot] " : "==> ", argv[2], argv[3]); } else if (strcmp(argv[1], "unregister") == 0) { /* Unregisters a package from the database */ @@ -152,8 +152,8 @@ main(int argc, char **argv) exit(1); } - printf("%s==> %s-%s unregistered successfully.\n", - in_chroot ? "[chroot] " : "", argv[2], argv[3]); + printf("%s%s-%s unregistered successfully.\n", + in_chroot ? "[chroot] " : "==> ", argv[2], argv[3]); } else if (strcmp(argv[1], "list") == 0) { /* Lists packages currently registered in database */