summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/func/pacman.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-02-26 21:45:49 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-02-26 21:45:49 (GMT)
commitc1b836f75c9c2c814a623ab50f6e2c2f4a1c23e2 (patch)
treeac8b78dda74ff5436a8002d4016d14da56a4d008 /abs/mv-core/func/pacman.py
parent9d768062e86e306c14979b3b19e5e96cbd357d20 (diff)
downloadlinhes_pkgbuild-c1b836f75c9c2c814a623ab50f6e2c2f4a1c23e2.zip
linhes_pkgbuild-c1b836f75c9c2c814a623ab50f6e2c2f4a1c23e2.tar.gz
linhes_pkgbuild-c1b836f75c9c2c814a623ab50f6e2c2f4a1c23e2.tar.bz2
redo pacman module for func
Diffstat (limited to 'abs/mv-core/func/pacman.py')
-rw-r--r--abs/mv-core/func/pacman.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/abs/mv-core/func/pacman.py b/abs/mv-core/func/pacman.py
index c1d8d9d..c8f2e13 100644
--- a/abs/mv-core/func/pacman.py
+++ b/abs/mv-core/func/pacman.py
@@ -5,17 +5,15 @@
import sub_process
# our modules
-from modules import func_module
+import func_module
# =================================
class pacman(func_module.FuncModule):
- def __init__(self):
- self.methods = {
- "update_system" : self.update_system,
- "pkgversion" : self.pkgversion,
- }
- func_module.FuncModule.__init__(self)
+ version = "0.0.1"
+ api_version = "0.0.1"
+ description = "update the server"
+
def update_system(self,flags):
flags.replace(";","") # prevent stupidity
@@ -36,5 +34,3 @@ class pacman(func_module.FuncModule):
return (cmd.returncode, results)
-methods = pacman()
-register_rpc = methods.register_rpc