[pacman-dev] [PATCH] Add newline to the end of error messages for signature format issues

Allan McRae allan at archlinux.org
Sun Jul 3 13:10:09 UTC 2016


Signed-off-by: Allan McRae <allan at archlinux.org>
---

I'll add this to the list of things I should manually update in the translation
files to avoid duplicate work occuring.

 lib/libalpm/signing.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c
index 0267158..6557c20 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;
 		}
 
-- 
2.9.0


More information about the pacman-dev mailing list