diff options
| author | Yaakov Nemoy <loupgaroublond@gmail.com> | 2008-10-01 19:50:34 -0400 |
|---|---|---|
| committer | Yaakov M. Nemoy <loupgaroublond@gmail.com> | 2008-10-01 19:50:34 -0400 |
| commit | cfb2820e1051de15e37c4a3d12be9b5514f81610 (patch) | |
| tree | 45f5706906db6ee17542da263ebf79b9695a6228 /modules/pkg.py | |
| parent | 7810e072debc0255de3135874e5c46f156f52d4a (diff) | |
| download | fedora-devshell-cfb2820e1051de15e37c4a3d12be9b5514f81610.tar.gz fedora-devshell-cfb2820e1051de15e37c4a3d12be9b5514f81610.tar.xz fedora-devshell-cfb2820e1051de15e37c4a3d12be9b5514f81610.zip | |
Breaks everything up into seperate files.
I had a problem where having Module in the local namespace was not the same as having Module in the non local namespace (via an import). Somehow breaking it down this way seemed simpler.
Diffstat (limited to 'modules/pkg.py')
| -rw-r--r-- | modules/pkg.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/pkg.py b/modules/pkg.py index a748b92..d586795 100644 --- a/modules/pkg.py +++ b/modules/pkg.py @@ -2,7 +2,8 @@ import os import commands from os.path import isdir, join -from devshell import FEDORA_DIR +from base.vars import FEDORA_DIR +from base.module import Module # Hack-filled at the moment. @@ -24,10 +25,10 @@ class CannotFindPackage(Exception): pass #FIXME: use this? -class SCM: +class SCM(object): cmds = dict(update='update', clone='clone', log='log', diff='diff') -class Package(object): +class Source(Module): def __init__(self, name, branch='devel'): self.name = name @@ -130,3 +131,5 @@ class Package(object): def bugs(self): raise NotImplementedError + +__all__ = ['Source']
\ No newline at end of file |
