diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-21 03:22:19 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-21 03:22:19 +0000 |
commit | d0f33415f254cb2fee06fd89f9cfed4535322f37 (patch) | |
tree | 66c13d72eac4f0110772b4675231c891334137bc /pcr/pactools/pt-pacfix | |
parent | 7e108c74958ec076a3734822f61f145d0d69547f (diff) |
Fri Mar 21 03:19:28 UTC 2014
Diffstat (limited to 'pcr/pactools/pt-pacfix')
-rw-r--r-- | pcr/pactools/pt-pacfix | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/pcr/pactools/pt-pacfix b/pcr/pactools/pt-pacfix deleted file mode 100644 index cd128331e..000000000 --- a/pcr/pactools/pt-pacfix +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -# -# pacfix.py: a script by pierluigi to list all the packages currently installed according to /var/log/pacman.log -# 2008-07-04: Modified by Chris Giles to prevent failure when "pacman.log" has lines with only two words - - -pkg=[] - -logfile = open("/var/log/pacman.log","r") -log=logfile.readlines() -for myline in log: - myarray = myline.strip("\n").split(" ") - if len(myarray) >= 3 : - if (myarray[2]=="installed" or myarray[2]=="upgraded"): - if (pkg.count(myarray[3])==0): - pkg.append(myarray[3]) - if (myarray[2]=="removed"): - if (pkg.count(myarray[3])!=0): - pkg.remove(myarray[3]) -pkg.sort() -for p in pkg: - print(p) |