14 lines
138 B
Python
Executable File
14 lines
138 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
import apt
|
|
import sys
|
|
|
|
try:
|
|
cache = apt.Cache()
|
|
pkg = cache["mintmenu"]
|
|
print pkg.installedVersion
|
|
except:
|
|
pass
|
|
|
|
|