repository
Generic support for dealing with repositories
Authors:
- Stijn De Weirdt (Ghent University)
- Dries Verdegem (Ghent University)
- Kenneth Hoste (Ghent University)
- Pieter De Baets (Ghent University)
- Jens Timmerman (Ghent University)
- Toon Willems (Ghent University)
- Ward Poelmans (Ghent University)
- Fotis Georgatos (Uni.Lu, NTUA)
Repository
¶
Bases: object
Interface for repositories
__init__(repo_path, subdir='')
¶
Initialize a repository. self.repo and self.subdir will be set. self.wc will be set to None. Then, setup_repo and create_working_copy will be called (in that order)
add_easyconfig(cfg, name, version, stats, previous)
¶
Add easyconfig to repository
PARAMETER | DESCRIPTION |
---|---|
cfg |
location of easyconfig file
|
name |
software name
|
version |
software install version, incl. toolchain & versionsuffix
|
stats |
build stats, to add to archived easyconfig
|
previous |
list of previous build stats
|
RETURNS | DESCRIPTION |
---|---|
location of archived easyconfig |
add_patch(patch)
¶
Add patch file to repository
PARAMETER | DESCRIPTION |
---|---|
patch |
location of patch file
|
RETURNS | DESCRIPTION |
---|---|
location of archived patch |
cleanup()
¶
Clean up working copy.
commit(msg=None)
¶
Commit working copy - add msg - add more info to msg
create_working_copy()
¶
Create working copy.
get_buildstats(name, ec_version)
¶
Get the build statististics for software with name and easyconfig version
init()
¶
Prepare repository for use.
is_initialized()
¶
Indicate whether repository was initialized.
setup_repo()
¶
Set up repository.
stage_file(path)
¶
Stage file at specified location in repository for commit
PARAMETER | DESCRIPTION |
---|---|
path |
location of file to stage
|
avail_repositories(check_useable=True)
¶
Return all available repositories. check_useable: boolean, if True, only return usable repositories
init_repository(repository, repository_path)
¶
Return an instance of the selected repository class.