Matt Prahl
fbe1beee54
Convert errors to JSON
...
Signed-off-by: Matt Prahl <mprahl@redhat.com >
Signed-off-by: Nils Philippsen <nils@redhat.com >
2016-08-26 12:06:28 +02:00
Nils Philippsen
ef4caa3455
Ensure temporary directories are cleaned up always.
...
Previously, if SCM.checkout() raised an exception, the created temporary
directory would be left over.
2016-08-24 14:20:57 +02:00
Jakub Kadlčík
7d487b64fc
Cleanup the temporary directory
2016-08-24 14:13:31 +02:00
Jakub Kadlčík
2c90806aa7
Use mkdtemp instead of TemporaryDirectory
...
because the TemporaryDirectory is python3 only
2016-08-24 14:13:31 +02:00
Jakub Kadlčík
3ba33f4e53
Use Popen's returncode instead of getstatusoutput
...
because the getstatusoutput is python3 only
2016-08-24 14:13:31 +02:00
Matt Prahl
7a928c3e8c
Adds database migration support, converts rida.conf to config.py, adds Vagrant support, seperates out app views to views.py, control of the app now manage.py
2016-08-01 13:22:01 -04:00
Ralph Bean
ec57fe0522
Some cleanup and fixes to the async work.
2016-07-31 07:13:27 -04:00
Ralph Bean
283c48dbbc
Try to refactor a bunch of our scattered retry logic.
2016-07-30 11:02:57 -04:00
Ralph Bean
80cd8c3fad
Get things working on py2 as well as py3.
2016-07-13 11:25:02 -04:00
Petr Šabata
fb231cd384
SCM cleanup
...
Removing the Fedora-centric functions; we won't need those here.
Also dropping the GIT+SSH scheme; rida won't have SSH access to
pretty much anywhere. Also removing the is_scm_url() method; we
already perform similar check in __init__.
Removing the koji copyright notice; all of the code is our own now.
I've also changed to documentation so that apidoc can parse it.
Signed-off-by: Petr Šabata <contyk@redhat.com >
2016-07-09 18:18:50 +02:00
Petr Šabata
851d12197b
Add is_available() method to SCM, make _run() a static method
...
And add checks _run() checks to checkout().
Signed-off-by: Petr Šabata <contyk@redhat.com >
2016-07-09 14:35:47 +02:00
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