diff options
Diffstat (limited to 'modules/sourceball.py')
| -rw-r--r-- | modules/sourceball.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/sourceball.py b/modules/sourceball.py index 4a39e94..ac306cc 100644 --- a/modules/sourceball.py +++ b/modules/sourceball.py @@ -30,17 +30,27 @@ from base.util import pwd, copy from modules.package import Package class SourceBall(Package): + '''a type of package that is a single sourceball, a spec file, and some patches''' _type = 'sourceball' def orig_dir(self, dir): + '''where is the original source kept + + use for making patches against modified source''' return dir + '_orig' def source(self, *args): + '''gives source directory + + first parameter, if 'orig' gives the original source, otherwise + you get the modified source + ''' if args[0] == 'orig': return self.orig_dir(self.cfg['source']) else: return self.cfg['source'] def add_sourceball(self, sourceball_name, extract_dir=None): + '''given a path to a sourceball, set it up here''' log.debug('addincg sourceball with dir ' + self.dir) with pwd(self.dir): try: |
