Fix arch-updates off-by-one.
There's a newline in the output so this overcounts by one.
This commit is contained in:
parent
45125f39af
commit
9b82e736a0
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class Module(core.module.Module):
|
||||||
)
|
)
|
||||||
|
|
||||||
if code == 0:
|
if code == 0:
|
||||||
self.__packages = len(result.split("\n"))
|
self.__packages = len(result.strip().split("\n"))
|
||||||
elif code == 2:
|
elif code == 2:
|
||||||
self.__packages = 0
|
self.__packages = 0
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue