|
parse_srpm(srpmfile)
parse srpm by creating a SrcRpmFile object |
|
|
|
guess_spec_fn(file_list,
preferred_name=None)
Guess spec file from a list of filenames |
|
|
|
guess_spec(topdir,
recursive=True,
preferred_name=None)
Guess a spec file |
|
|
|
guess_spec_repo(repo,
treeish,
topdir='
' ,
recursive=True,
preferred_name=None)
Try to find/parse the spec file from a given git treeish. |
|
|
|
spec_from_repo(repo,
treeish,
spec_path)
Get and parse a spec file from a give Git treeish |
|
|
int
>>> string_to_int("1234")
1234
>>> string_to_int("123k")
125952
>>> string_to_int("1234K")
1263616
>>> string_to_int("1M")
1048576
|
string_to_int(val_str)
Convert string of possible unit identifier to int. |
|
|