commit:     f070275fe05d5053c3756ebb5d0a602db8ba515d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 28 15:48:48 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 28 15:49:16 2024 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=f070275f

binpkg: add another missing newline to error message

```
Error reading binpkg 
'/var/cache/binpkgs/dev-perl/SGMLSpm/SGMLSpm-1.1-r2-7.gpkg.tar': [Errno 22] 
Invalid argument!!! Invalid binary package: 
'/var/cache/binpkgs/dev-perl/SGMLSpm/SGMLSpm-1.1-r2-7.gpkg.tar', Error reading 
binpkg '/var/cache/binpkgs/dev-perl/SGMLSpm/SGMLSpm-1.1-r2-7.gpkg.tar': [Errno 
22] Invalid argument
```

Bug: https://bugs.gentoo.org/925714
Signed-off-by: Sam James <sam <AT> gentoo.org>

 lib/portage/binpkg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/portage/binpkg.py b/lib/portage/binpkg.py
index 9ecd52cf3c..a48e09bdb8 100644
--- a/lib/portage/binpkg.py
+++ b/lib/portage/binpkg.py
@@ -54,7 +54,7 @@ def get_binpkg_format(binpkg_path, check_file=False, 
remote=False):
         # We got many different exceptions here, so have to catch all of them.
         file_format = None
         writemsg(
-            colorize("ERR", f"Error reading binpkg '{binpkg_path}': {err}"),
+            colorize("ERR", f"Error reading binpkg '{binpkg_path}': {err}\n"),
         )
         raise InvalidBinaryPackageFormat(f"Error reading binpkg 
'{binpkg_path}': {err}")
 

Reply via email to