################################################################################
# SETTINGS – main settings
# set this to True if you just want one summary line (True/False)
brief = True
# number of packages to display (0 = display all)
num_of_pkgs = 5
#show only important packages
onlyImportant = False
########################################

p = runpacman()
#parse pacmans output
for line in p.stdout:
if re.match(‘(Cíle|Pakete|Targets|Se procesará|Cibles|Pacchetti|’
‘Celuje|Pacotes|Цели):’, line):
program = line.split()[1:]
for line in p.stdout:
if not line.strip():
break
program += line.split()