9 Search and build packages with PKGBUILDs from AUR.
10 As for now, it's not ready to use. AUR2 need to be
13 def __init__(self
, put
, conf
):
17 def do_seturl(self
, url
=None, *ignore
):
18 """Set non-default url for AUR database"""
20 self
.put("AUR url: ", "GREEN", False)
21 self
.put(self
.conf
.aur_url
)
23 self
.conf
.aur_url
= url
24 self
.put("New AUR url: ", "GREEN", False)
25 self
.put(self
.conf
.aur_url
)
27 def do_search(self
, *args
):
28 """Search package with <arg list> in it's name or description"""
29 #TODO 2008-02-11 15:35:33
30 self
.put("aur2 search:", color
="GREEN", newline
=True)
31 self
.put("TODO, but AUR2 isn't readu yet.")
33 def do_upgrade(self
, *ignore
):
34 """Upgrade packages from AUR"""
35 #TODO 2008-02-11 15:35:28
36 for pkg
in os
.popen("pacman -Qm"):
37 pkg
, ver
= pkg
.split()
38 self
.put(" }-->", "GREEN", False)
39 self
.put(pkg
.ljust(32), "green", False)
40 self
.put(ver
, newline
=True)