Commit graph

68 commits

Author SHA1 Message Date
Tomas Kopecek
7d277a8ad5 urllib changes 2017-06-01 09:39:23 +02:00
Tomas Kopecek
a4a1536a03 python-modernize -f libmodernize.fixes.fix_file 2017-06-01 09:39:22 +02:00
Tomas Kopecek
68bf19c739 python-modernize -f libmodernize.fixes.fix_dict_six 2017-06-01 09:39:22 +02:00
Tomas Kopecek
c87cab8f54 python-modernize -f lib2to3.fixes.fix_tuple_params 2017-06-01 09:39:22 +02:00
Tomas Kopecek
f6e5bd11f3 python-modernize -f lib2to3.fixes.fix_numliterals 2017-06-01 09:39:22 +02:00
Tomas Kopecek
1220008f8f python-modernize -f lib2to3.fixes.fix_except 2017-06-01 09:39:22 +02:00
Tomas Kopecek
b1da150c01 python-modernize -f libmodernize.fixes.fix_imports_six 2017-06-01 09:39:21 +02:00
Tomas Kopecek
0eaf3349c4 python-modernize -f libmodernize.fixes.fix_zip 2017-06-01 09:39:21 +02:00
Tomas Kopecek
7f946b37be python-modernize -f libmodernize.fixes.fix_xrange_six 2017-06-01 09:39:21 +02:00
Tomas Kopecek
cc9fff9840 remove has_key (not working in python3) 2017-03-07 08:15:20 -05:00
Tomas Kopecek
1494301465 use new exception syntax 2017-03-02 10:52:30 -05:00
Tomas Kopecek
c143d0b88f print statement -> print function 2017-02-28 10:55:56 -05:00
Mike McLean
c41881a8b6 preserve old option for compatibility 2017-01-26 16:39:22 +01:00
Dan Horák
552e79d98f koji-shadow: fix log() invocation 2017-01-26 16:39:22 +01:00
Dan Horák
4b2085e7f7 koji-shadow: remove authca, it's not used for ssl_login any more 2017-01-26 16:39:22 +01:00
Dan Horák
785b567abe koji-shadow: allow use without certs 2017-01-26 16:39:22 +01:00
Patrick Uiterwijk
de89ddcd34 Add krb_rdns to koji-shadow
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-12-19 12:25:14 -05:00
Mike McLean
89ca42f224 use grab_session_options everywhere 2016-11-22 16:41:31 -05:00
Karsten Hopp
f86dd31077 back out top broken changes 2016-10-26 13:57:49 -04:00
Karsten Hopp
ca15aff82b add --logfile parameter, no behaviour changes if omitted 2016-10-26 13:57:49 -04:00
Mike McLean
b4be256abd no coverage for unreached code 2016-10-25 17:16:12 -04:00
Mike McLean
a1c8808544 ImportErrors are uncovered 2016-10-25 17:16:12 -04:00
Dan Horák
9ecc283d4e koji-shadow: use /var/tmp for work files 2016-03-21 15:24:19 -04:00
Dan Horák
3d06f7a805 koji-shadow: use workpath consistently 2016-03-21 15:24:19 -04:00
Dan Horák
880a57730f copy extra information for a tag cloned from primary koji 2016-03-21 15:18:01 -04:00
Dan Horák
80186d70ef koji-shadow: mark builds without buildroot info as noroot
Due bugs in used tools mainline koji instance could store empty buildroot infos for builds.
2016-03-21 15:09:58 -04:00
Pavol Babincak
9e89ebb9a4 Ran reindent.py from cpython tools on all python scripts
Citing from reindent docs:

    Change Python (.py) files to use 4-space indents and no hard tab
    characters. Also trim excess spaces and tabs from ends of lines, and
    remove empty lines at the end of files.  Also ensure the last line
    ends with a newline.

Citing from PEP 8:

    Use 4 spaces per indentation level.

    Python 2 code indented with a mixture of tabs and spaces should be
    converted to using spaces exclusively.

    Don't write string literals that rely on significant trailing
    whitespace. Such trailing whitespace is visually indistinguishable
    and some editors (or more recently, reindent.py) will trim them.

Also PyLint recommends not to have trailing whitespace on any line.
2015-05-13 16:39:53 -04:00
Mike Bonnet
ab53d2deb0 update copyright 2014-10-28 23:54:21 -04:00
Dennis Gilmore
ca297c8482 koji-shadow: add option to only import noarch builds
when following the mass rebuild it can be useful to see where you are in
the rebuild by having all the noarch builds imported, it will give you a
better idea of what needs to actually be built.

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2014-06-13 12:57:24 -05:00
Dan Horák
684b186050 koji-shadow: convert certificate paths to absolute
Converting the certificate paths to absolute using os.path.expanduser() will
allow using a common shadow config for multiple users.
2014-06-11 15:28:31 -04:00
Dennis Gilmore
5816ed5cc3 fixup some issies identified by pylint
remove unused imports
fixup whitespace issues
update copyright years
2014-05-13 21:10:23 -05:00
Dan Horák
f1647dc554 allow setting build priority
When building for multiple tags it could be useful to set different priorities
for the tasks, eg. rawhide builds will be lower prio than branched builds.
2013-12-09 11:52:56 -06:00
Dan Horák
a1096fb878 fix format when printing rpms without buildroot 2013-12-09 11:52:06 -06:00
Dan Horák
727df9b680 enable prefer-new functionality for single builds
When a tag is set for a single build we can search for a replacement of
a missing build.
2013-02-20 07:13:28 -06:00
Dan Horák
61d7790601 accept tag also when doing a single build
A single build with the prefer-new option will be possible when an information
about the tag will be provided.
2013-02-20 07:13:28 -06:00
Dan Horák
cdfae9fe86 don't search for the latest build in the top-level run of scanBuild 2013-02-20 07:13:28 -06:00
Dan Horák
92864c3805 use the closest newer build not the latest
Recently when a build is missing, the prefer_new option is set and a newer build exists,
the latest build is included in the buildroot. We should rather be using a closest newer
build if it exists, the latest one can be too new, with different dependencies etc.
2013-02-20 07:13:28 -06:00
Dennis Gilmore
fa4f5b0e58 fix up white space issue 2012-11-18 19:43:00 -06:00
Dan Horák
7501b848fb let koji-shadow finish when in prefer-new mode
When koji-shadow is run in the prefer-new mode the number of missing builds can
be non-zero. Let koji-shadow finish when there are no pending builds in this case.
2012-11-18 19:41:13 -06:00
Dan Horák
34977e301c use glob matching for items in ignorelist 2012-11-18 19:41:13 -06:00
Dan Horák
f350b56693 merge the ignorelist from a script generated part and manually maintained part
On secondary arches it can be usef to maintain the list of packages that are
built in 2 parts - one is script generated and based on values of ExclusiveArch
and ExcludeArch tags in source rpms and the second is maintained manually that
should be skipped for some reason (eg. not yet decided whether to fix them or
add ExcludeArch/ExclusiveArch)
2012-11-18 19:41:13 -06:00
Dan Horák
5df0317d4e don't replace existing build when running with prefer-new
Only try to replace a build with newer one when the required one is missing.
It also means the buildroot will be closer to the one in primary.
2012-11-18 19:41:13 -06:00
Dan Horák
f54447c34b lower the priority for koji-shadow submitted builds
Lowering the priority for koji-shadow submitted builds means that user submitted
build don't have to wait until koji-shadows queue is empty, also notifications
are sent earlier when the queue is full.
2012-11-18 19:40:56 -06:00
Mike McLean
54c0ed8438 Support wsgi in koji-hub and koji-web
- mod_python still supported, but deprecated
 - mod_wsgi is the default
 - koji-web now configured via web.conf
 - new wsgi-friendly publisher for koji-web
 - koji-web now has logging
2012-05-10 17:27:40 -04:00
Dennis Gilmore
40c6c2c302 dont error out on a tag failure. 2012-02-24 08:08:51 -06:00
Mike Bonnet
eea730300a - enable use of a Kerberos service name other than host/ on the hub
- get the Kerberos realm from the client principal, rather than assuming the last two components of the domain name
2011-01-06 15:54:53 -05:00
Mike Bonnet
ea6c283ba5 fix Kerberos authentication for modern python: e.message is deprecated, and e.err_code no longer exists 2010-03-09 13:46:54 -05:00
Dennis Gilmore
373e92c2b9 add support to protect a build by name.
What this does is to ensure that sertain builds always match the original, overriding prefer-new
2009-11-10 14:07:42 -06:00
Dennis Gilmore
0ece799595 add support to always include extra local packages takes a nvr 2009-11-10 14:07:42 -06:00
Dennis Gilmore
f7d990f8d7 continue when we hit an ignored dep dont break, we are not yet done dep solving the build 2009-10-14 12:49:17 -05:00