Merge pull request #729 from spxtr/patch-1

Fix arch-updates off-by-one.
This commit is contained in:
tobi-wan-kenobi 2020-10-26 03:08:30 +01:00 committed by GitHub
commit d1e9e7e8bb
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: