Fix arch-updates off-by-one.

There's a newline in the output so this overcounts by one.
This commit is contained in:
Joe Finney 2020-10-25 17:29:00 -07:00 committed by GitHub
parent 45125f39af
commit 9b82e736a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: