diff options
author | Yaakov M. Nemoy <loupgaroublond@gmail.com> | 2009-02-05 17:15:21 +0100 |
---|---|---|
committer | Yaakov M. Nemoy <loupgaroublond@gmail.com> | 2009-02-05 17:15:21 +0100 |
commit | 87bd65a65fe047eb143571f84f1e0dc27f5b8f31 (patch) | |
tree | 8525315f353770c8f31d86f0d57c5faf8ad0c9b5 | |
parent | 85d8bd9c75d31053567d493b9bd16843be325a07 (diff) | |
download | fedora-devshell-87bd65a65fe047eb143571f84f1e0dc27f5b8f31.tar.gz fedora-devshell-87bd65a65fe047eb143571f84f1e0dc27f5b8f31.tar.xz fedora-devshell-87bd65a65fe047eb143571f84f1e0dc27f5b8f31.zip |
Removes cruft and adds port property to package
-rw-r--r-- | modules/package.py | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/modules/package.py b/modules/package.py index 6ad7ebf..599a015 100644 --- a/modules/package.py +++ b/modules/package.py @@ -136,19 +136,12 @@ class Package(Directory): def sourceballen(self): return self.cfg['sourceballen'] -# These don't make sense anymore -# TODO: Figure out the API to iterate over PackageSources where *args should be diff for each one -# def source_dir(self, *args): -# '''provides an absolute pathname for where the primary source is unpacked''' -# return join(self.dir, self.source(*args)) - -# def source(self, *args): -# '''base method that should return where the source is kept to some yet unknown criteria''' -# raise NotImplementedError - -# @property -# def sourceball(self): -# '''the current sourceball in use, for building packages''' -# return self.cfg['sourceball'] + @property + def port(self): + return self.cfg['port'] + + def set_port(self, port): + #TODO: Check for valid port + self.cfg['port'] = port __all__ = ['Package'] |