Commit graph

527 commits

Author SHA1 Message Date
Tomas Kopecek
15e4d07763 encode to bytes only under py3
Related: https://pagure.io/koji/pull-request/1498
2019-06-24 18:09:10 -04:00
Tomas Kopecek
9326cebd32 pass bytes to sha1 constructor
As preparation to use hashlib's constructors, fix passing correct
datatype to sha1 constructor in web ui.

Fixes: https://pagure.io/koji/issue/1486
2019-06-19 11:08:22 -04:00
Mike McLean
fdc2bdaef9 search form on one line 2019-06-14 15:23:49 -04:00
Mike McLean
08fd56a5aa combine search and searchresults templates 2019-06-14 15:23:49 -04:00
Tomas Kopecek
7a5c9130bc retain form values in search page 2019-06-14 15:23:49 -04:00
Tomas Kopecek
f9758e2572 retain search type 2019-06-14 15:23:49 -04:00
Tomas Kopecek
7842c480cf retain old search pattern in web ui
Fixes: https://pagure.io/koji/issue/1130
2019-06-14 15:23:49 -04:00
Tomas Kopecek
0eec0d75e2 let hub decide, what headers are supported
Currently web ui expects, that is it using same rpm version as hub -
this is wrong assumption, so let hub decide what is available there.

Fixes: https://pagure.io/koji/issue/1261
2019-06-13 13:46:12 -04:00
Tomas Kopecek
3e65782daf remove unneeded import 2019-05-06 10:33:06 -04:00
Mike McLean
3d8c75d7d3 use time.time() for current timestamp 2019-05-06 10:33:06 -04:00
Tomas Kopecek
e5b0a3ac6e display task durations in webui
Fixes: https://pagure.io/koji/issue/1382
2019-05-06 10:33:06 -04:00
Miro Hrončok
32977881f6 Support tilde in search
Fixes https://pagure.io/koji/issue/1294

Signed-off-by: Miro Hrončok <miro@hroncok.cz>
2019-03-22 10:18:05 -04:00
Tomas Kopecek
a2892a9b24 remove urlescape from package name
urlescape fails for unicode strings. On the other hand, 'name' attribute
is not used anywhere in infoURLs, so it is safe to just drop it.

Fixes: https://pagure.io/koji/issue/1224
2019-03-12 10:59:20 -04:00
Mike McLean
0d05c1c304 use greetings list from lib 2019-02-27 12:39:36 -05:00
Tomas Kopecek
23bd0fe45a replace urrlib.quote with six.moves
Some web templates still uses old library, replace with py3-compatible
one.

Fixes: https://pagure.io/koji/issue/1283
2019-02-26 22:42:25 -05:00
Tomas Kopecek
53f3109fba correctly escape license in web ui
Fixes: https://pagure.io/koji/issue/1285
2019-02-26 22:04:15 -05:00
Tomas Kopecek
8e41dd6d09 remove sys.exc_clear() in web ui
sys.exc_clear() doesn't exist in py3. It also doesn't seem to be really
needed, so it should be safe to drop it.
2019-02-19 17:29:25 -05:00
Tomas Kopecek
d368322fb6 fix weak deps handling in rpminfo web page
PR #965 (commit ef998c6) changed way, how weak reference support is
detected in rpm. As a result, web page rpminfo is failing due to missing
variable.

Fixes: https://pagure.io/koji/issue/1234
2019-02-18 15:32:59 -05:00
Tomas Kopecek
ee673d4b66 Web UI python3 changes
Fixes: https://pagure.io/koji/issue/890
2019-02-12 15:01:37 -05:00
Tomas Kopecek
17db100db5 few sort speedups
Fixes: https://pagure.io/koji/issue/963
2018-12-04 00:05:26 -05:00
Tomas Kopecek
5aad0b2b8c tooltip for search field
Fixes: https://pagure.io/koji/issue/1122
2018-10-18 13:50:05 +02:00
Tomas Kopecek
167b296311 additional info on builders in channelinfo page
Fixes: https://pagure.io/koji/issue/988
2018-07-11 18:11:18 -04:00
Tomas Kopecek
caae1a0a8b workaround unnecessary list conversions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
b37236d7ae fix incorrect divisions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
8e61dc7c56 python-modernize -f libmodernize.fixes.fix_classic_division 2018-07-11 17:37:40 -04:00
Tomas Kopecek
be535c2854 python-modernize -f libmodernize.fixes.fix_imports_six 2018-07-11 17:37:39 -04:00
Tomas Kopecek
5ad9027320 python-modernize -f libmodernize.fixes.fix_basestring 2018-07-11 17:37:39 -04:00
Tomas Kopecek
7f6b717eb6 python-modernize -f libmodernize.fixes.fix_import 2018-07-11 17:37:39 -04:00
Tomas Kopecek
bcee24e50c python-modernize -f libmodernize.fixes.fix_dict_six 2018-07-11 17:37:39 -04:00
Tomas Kopecek
b96092334d python-modernize -f libmodernize.fixes.fix_xrange_six 2018-07-11 17:37:39 -04:00
Mike McLean
d60bdddcf4 link dist repo on task page 2018-05-03 16:05:16 -04:00
Tomas Kopecek
d2fcb8b459 Don't show license for external rpms
Fixes: https://pagure.io/koji/issue/791
2018-04-03 17:16:41 -04:00
Franz Chih-Ping Hsieh
ac88d5aa91 avoid using backslash and fix typo issue. 2018-03-01 16:01:47 -05:00
Franz Chih-Ping Hsieh
be6dab466f Replace cmp with key in sorted() for python3 support
Fixes: #713
https://pagure.io/koji/issue/713
2018-03-01 16:01:47 -05:00
Mike McLean
e6fae7ca29 fix rpm components check 2017-12-07 14:47:09 -05:00
Tomas Kopecek
f635493c95 show archives in archives 2017-12-07 14:47:09 -05:00
Tomas Kopecek
601871c699 show components for all archives
Related: https://pagure.io/koji/issue/545
2017-12-07 14:47:09 -05:00
Tomas Kopecek
c8242ed75f Display license info in CLI's rpminfo and Web UI
Fixes: https://pagure.io/koji/issue/683
2017-11-30 17:39:01 -05:00
Mike McLean
900767cf4b add krb_canon_host option to various clients 2017-10-27 15:32:25 -04:00
Mike McLean
9bcce9dc3e pull in core volume policy functions from earlier branches 2017-10-06 17:16:03 -04:00
Mike McLean
2865f2421b avoid using encode_int in some of the client code 2017-08-25 16:48:02 -04:00
Tomas Kopecek
b98d93d788 drop mod_python support
Fixes: https://pagure.io/koji/issue/466
2017-07-06 14:04:19 +02:00
Mike McLean
3b0861446b rework web build log display 2017-06-21 10:55:13 -04:00
Tomas Kopecek
6f8df41889 fix docs for mod_auth_gssapi 2017-06-06 09:29:14 -04:00
Mike McLean
c86b5c3ac0 first stab at renaming signed repos to dist repos
sed -i -e 's/signed\(.\?[Rr]epo\)/dist\1/g'
sed -i -e 's/Signed\(.\?[Rr]epo\)/Dist\1/g'
2017-03-30 09:47:20 -04:00
Jay Greguske
211ed4bcae fix newRepo in webui 2017-03-30 09:37:56 -04:00
Jay Greguske
8f638935b6 move package addition logic to builder from hub 2017-03-30 09:37:56 -04:00
Jay Greguske
43da89749f fix createrepo task breakage in webui 2017-03-30 09:37:56 -04:00
Jay Greguske
08259b426e implement --allow-unsigned and --skip-unsigned 2017-03-30 09:37:56 -04:00
Jay Greguske
f1a45e0024 signed-repo kojiweb tweaks 2017-03-30 09:37:56 -04:00