summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2016-07-03 15:05:41 +0200
committerAllan McRae <allan@archlinux.org>2016-08-30 10:10:40 +0200
commit5b839c58ee1e78312edf69cd2cb5f96d8b649d01 (patch)
tree8903b5af1cf62137d37b5fee53783da2981a0f8c /lib
parent56ae9603768bdc850f32bc789a474ae836305033 (diff)
downloadpacman-5b839c58ee1e78312edf69cd2cb5f96d8b649d01.tar.gz
pacman-5b839c58ee1e78312edf69cd2cb5f96d8b649d01.tar.xz
Add newline to the end of error messages for signature format issues
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/signing.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c
index 02671582..6557c200 100644
--- a/lib/libalpm/signing.c
+++ b/lib/libalpm/signing.c
@@ -998,21 +998,21 @@ int SYMEXPORT alpm_extract_keyid(alpm_handle_t *handle, const char *identifier,
while(pos < len) {
if(!(sig[pos] & 0x80)) {
_alpm_log(handle, ALPM_LOG_ERROR,
- _("%s: signature format error"), identifier);
+ _("%s: signature format error\n"), identifier);
return -1;
}
if(sig[pos] & 0x40) {
/* "new" packet format is not supported */
_alpm_log(handle, ALPM_LOG_ERROR,
- _("%s: unsupported signature format"), identifier);
+ _("%s: unsupported signature format\n"), identifier);
return -1;
}
if(((sig[pos] & 0x3f) >> 2) != 2) {
/* signature is not a "Signature Packet" */
_alpm_log(handle, ALPM_LOG_ERROR,
- _("%s: signature format error"), identifier);
+ _("%s: signature format error\n"), identifier);
return -1;
}
@@ -1035,21 +1035,21 @@ int SYMEXPORT alpm_extract_keyid(alpm_handle_t *handle, const char *identifier,
case 3:
/* partial body length not supported */
_alpm_log(handle, ALPM_LOG_ERROR,
- _("%s: unsupported signature format"), identifier);
+ _("%s: unsupported signature format\n"), identifier);
return -1;
}
if(sig[pos] != 4) {
/* only support version 4 signature packet format */
_alpm_log(handle, ALPM_LOG_ERROR,
- _("%s: unsupported signature format"), identifier);
+ _("%s: unsupported signature format\n"), identifier);
return -1;
}
if(sig[pos + 1] != 0x00) {
/* not a signature of a binary document */
_alpm_log(handle, ALPM_LOG_ERROR,
- _("%s: signature format error"), identifier);
+ _("%s: signature format error\n"), identifier);
return -1;
}