From c27ff3ce07de79215b58f5fd10ff175424cba7cb Mon Sep 17 00:00:00 2001 From: "Yaakov M. Nemoy" Date: Thu, 8 Jan 2009 16:43:14 -0500 Subject: adds 135 kilocraps of documentation 135 kilocraps = 1 metric craptonne --- modules/sourceball.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/sourceball.py') 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: -- cgit