Browse Source

Fix bindep --brief for arch linux

Pacman output has changed and, as of v5.1.2, has a newline after
showing package x was not found.

Without this patch, the bindep --brief would throw an exception
because the stdout is not properly matched.

Change-Id: Ibe2ca0d426d6d8fa69b5c4ee9ccf0f6a07c862a7
Jean-Philippe Evrard 3 months ago
parent
commit
9377cdc14d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      bindep/depends.py

+ 1
- 1
bindep/depends.py View File

@@ -530,7 +530,7 @@ class Pacman(Platform):
530 530
                 stderr=subprocess.STDOUT).decode(getpreferredencoding(False))
531 531
         except subprocess.CalledProcessError as e:
532 532
             eoutput = e.output.decode(getpreferredencoding(False))
533
-            if e.returncode == 1 and eoutput.endswith('was not found'):
533
+            if e.returncode == 1 and eoutput.strip().endswith('was not found'):
534 534
                 return None
535 535
             raise
536 536
         # output looks like

Loading…
Cancel
Save