diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-28 03:27:16 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-28 03:27:16 +0000 |
commit | 462391357aa5e749dc9908c15f3baa0b4416f3d8 (patch) | |
tree | 11d4d3f054aae9ffd869adc634054f64a16d83b8 /pcr/pactools/pt-pacfix | |
parent | 748e32a3a886569b58a27003e85b76be5746153d (diff) |
Tue Jan 28 03:22:21 UTC 2014
Diffstat (limited to 'pcr/pactools/pt-pacfix')
-rwxr-xr-x | 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 100755 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) |