mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 12:20:14 +01:00
Added support for git dependencies with custom branch name.
This commit is contained in:
@@ -41,9 +41,16 @@ def system(args, exclude=None, stdin=None):
|
||||
if err:
|
||||
err = decode(err)
|
||||
stripped = [line for line in err.split(os.linesep) if line]
|
||||
|
||||
def matches_pattern(line, pattern):
|
||||
if isinstance(pattern, re.Pattern):
|
||||
return bool(pattern.match(line))
|
||||
return line.startswith(pattern)
|
||||
|
||||
for pattern in exclude:
|
||||
stripped = [line for line in stripped
|
||||
if not line.startswith(pattern)]
|
||||
if not matches_pattern(line, pattern)]
|
||||
|
||||
if stripped:
|
||||
# Tolerate single line warning(s)
|
||||
for line in stripped:
|
||||
|
||||
Reference in New Issue
Block a user