From 87bd65a65fe047eb143571f84f1e0dc27f5b8f31 Mon Sep 17 00:00:00 2001 From: "Yaakov M. Nemoy" Date: Thu, 5 Feb 2009 17:15:21 +0100 Subject: Removes cruft and adds port property to package --- modules/package.py | 21 +++++++-------------- 1 file 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'] -- cgit