repo.or.cz
/
AurShell.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Repo moved to http://github.com/husio/aurshell/tree/master
[AurShell.git]
/
plugin
/
pacman.py
blob
7b9bdaa070b5f25103683ff9acba64c3d4573572
1
import
os
2
3
4
5
class
pacman
(
object
):
6
"""Use it like it was pacman.
7
It's just pacman parser, nothing more.
8
"""
9
def
__init__
(
self
,
put
,
conf
):
10
self
.
put
=
put
11
self
.
conf
=
conf
12
self
.
pacman_cmd
=
"sudo pacman "
13
14
def
__call__
(
self
, *
args
):
15
os
.
system
(
self
.
pacman_cmd
+
" "
.
join
(
args
))
16
17