This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import re | |
# Store the output of pacman -Qq in a list, i.e. the name of all packages | |
pack_command = subprocess.getoutput("pacman -Qq") | |
packages_list = pack_command.splitlines() | |
# Store the output of paclog --package=pack_name for all packages in a list | |
# Even though the format of the list is pretty ugly. | |
pac_log = [] |