blob: 7564929c85136b0f402efa270bffdcfb034db6bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff -Naur a/program/functions.py b/program/functions.py
--- a/program/functions.py 2010-12-04 17:18:57.000000000 +0000
+++ b/program/functions.py 2015-10-13 09:34:01.093513450 +0000
@@ -57,7 +57,7 @@
- a = commands.getoutput( 'dpkg -l' )
+ a = commands.getoutput( 'pacman -Q' )
a = a.split( '\n' )
for each in a:
- if each[0:2] == 'ii' and each.split()[1] == pkg_name:
+ if each.split()[0] == pkg_name:
return True
return False
|