summaryrefslogtreecommitdiffstats
path: root/modules/profile.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile.py')
-rw-r--r--modules/profile.py19
1 files changed, 16 insertions, 3 deletions
diff --git a/modules/profile.py b/modules/profile.py
index 56639cb..dc4d44a 100644
--- a/modules/profile.py
+++ b/modules/profile.py
@@ -27,6 +27,7 @@ from base.vars import MOCK_CFG_DIR
from modules.directory import Directory
class Profile(Directory):
+ '''a profile module to resemble various architectures, branches, build targets, etc...'''
_type = 'profile'
@property
def dist(self):
@@ -36,39 +37,51 @@ class Profile(Directory):
@property
def distvar(self):
- 'eg: fedora or rhel'
+ '''eg: fedora or rhel'''
return self.cfg['distvar']
@property
def distval(self):
- 'eg: 10 or 3 (string form)'
+ '''eg: 10 or 3 (string form)'''
return self.cfg['distval']
@property
def koji_target(self):
- 'eg: dist-f11'
+ '''eg: dist-f11'''
return self.cfg['koji_target']
@property
def dist_defines(self):
+ '''a list of parameters for an rpm aware function to redefine
+ certain macros to match the profile'''
return dist_defines(self.dist, self.distvar, self.distval)
# i'm not sure this is 100% relevant, mock cfg's might be named only after the arch used
@property
def mock_cfg(self):
+ '''the name of the mock config/profile to be used to compile packages for this profile
+
+ this will probably change once we figure out how to handle branches and build targets better
+ '''
# TODO: buildarchs need to be handled somehow
# yes i'm lame and i did this i386 only for now
return get_mock_cfg(self.distvar, self.distval, 'i386')
@property
def mock_cfg_dir(self):
+ '''directory where profile wide mock settings are kept'''
return join(self.dir, 'mock')
@property
def result_dir(self):
+ '''where to store results from mock'''
return self.dir
def configure_from_system(self, branch):
+ '''sets up a profile based on system profiles
+
+ branch is a branch name from the fedora-cvs
+ '''
self.cfg['branch'] = branch
d = distro[branch]
self.cfg['koji_target'] = d[TARGET]