Commit Graph

14 Commits

Author SHA1 Message Date
Petr Šabata
0904ae6478 Add the get_latest() method
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-08 17:29:46 +02:00
Petr Šabata
121d7268e8 Cleanup
Add our license to scm.py, add encoding declaration, remove the obsolete
validation.py file.

Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-08 14:36:30 +02:00
Petr Šabata
2ff0c163d3 Make git calls quiet
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-08 14:20:14 +02:00
Petr Šabata
3cc438b379 Extend the SCM code
Parse the scmurls, understand the git hash parts, make the checkout()
method actually check out the given hash, add various properties, make
allowed_scm URLs optional, and drop the common repo code.

Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-07-08 13:46:34 +02:00
Karsten Hopp
d30d501657 only a few routines remain from the original koji sources. change comment 2016-07-07 14:01:44 +02:00
Karsten Hopp
8494e696bc add simple retry mechanism 2016-07-06 14:23:20 +02:00
Karsten Hopp
d033c32113 add function to check it a giturl exists in dist-git 2016-07-05 17:23:07 +02:00
Karsten Hopp
f3c7eac837 add a function that takes a string with a dist-git url as parameter and returns a cgit url 2016-07-05 14:09:51 +02:00
Karsten Hopp
740a2f576e no need to set an environment, use execvp 2016-07-05 13:36:02 +02:00
Karsten Hopp
a9bcef7d29 add a few functions to return either the git hash or a git URL of master/HEAD of either the git object or a package name 2016-07-05 12:18:36 +02:00
Karsten Hopp
62ad0f40b6 fix merge 2016-07-04 15:24:07 +02:00
Karsten Hopp
e37310ab8b drop -n from git clone command 2016-07-04 15:22:57 +02:00
Karsten Hopp
e5bd3418d2 initial scm version 2016-07-04 14:53:13 +02:00
Karsten Hopp
067330c979 initial scm version 2016-07-04 14:49:14 +02:00