commit
800d603c1f
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ PATTERN = "{} packages upgraded, {} newly installed, {} to remove and {} not upg
|
||||||
|
|
||||||
|
|
||||||
def parse_result(to_parse):
|
def parse_result(to_parse):
|
||||||
# We want to line with the iforamtion about package upgrade
|
# We want the line with the package upgrade information
|
||||||
line_to_parse = to_parse.split("\n")[-4]
|
line_to_parse = to_parse.split("\n")[-4]
|
||||||
result = re.search(
|
result = re.search(
|
||||||
r"(.+) packages upgraded, (.+) newly installed, (.+) to remove", line_to_parse
|
r"(.+) packages upgraded, (.+) newly installed, (.+) to remove", line_to_parse
|
||||||
|
|
Loading…
Reference in a new issue