Commit graph

959 commits

Author SHA1 Message Date
Mike McLean
106ccbcde5 single opt for get, plus simple unit test 2023-03-23 13:20:06 +01:00
Mike McLean
898af45e4f flake8 fix 2023-03-23 13:20:06 +01:00
Mike McLean
1d117742fa use surrogateescape to decode in RawHeader 2023-03-23 13:20:06 +01:00
Mike McLean
46b15774bd decode option in RawHeader, handle integer counts 2023-03-23 13:20:06 +01:00
Tomas Kopecek
d6d5eceefd flake8 fix 2023-03-23 13:20:06 +01:00
Mike McLean
ed22da06c8 RawHeader doesn't actually need rpmlib 2023-03-23 13:20:06 +01:00
Mike McLean
d8f7564c45 redundant constant 2023-03-23 13:20:06 +01:00
Mike McLean
d094ace4c4 autodetect signature headers in RawHeader.dump() 2023-03-23 13:20:06 +01:00
Mike McLean
81058ba0cd RawHeader.dump improvements 2023-03-23 13:20:06 +01:00
Mike McLean
3f4c97f372 Fix sig header field names in RawHeader.dump() 2023-03-23 13:20:06 +01:00
Mike McLean
c3cd98d152 only pad header lengths for signature headers
Based on a workaround by puiterwijk
https://github.com/fedora-iot/rpm-head-signing/pull/61/files
2023-03-14 11:08:16 +01:00
Mike McLean
8afea8083b attempt to decode strings in dump 2023-03-07 12:50:10 +01:00
Mike McLean
d723e126bf also support get for unicode string arrays 2023-03-07 12:50:10 +01:00
Tomas Kopecek
a0ffd9f434 RawHeader.get can return also string lists
Related: https://pagure.io/koji/issue/3713
2023-03-07 12:50:10 +01:00
Tomas Kopecek
b0e91e378c Move db/auth to kojihub module
Related: https://pagure.io/koji/issue/3666
2023-03-01 11:46:24 +01:00
Tomas Kopecek
d545aafbe7 Release notes 1.32
Related: https://pagure.io/koji/issue/3621
2023-02-16 09:20:27 +01:00
Jana Cupova
59f5a4e19b Fix unlogging session
Fixes: https://pagure.io/koji/issue/3394
2023-02-07 13:13:17 +01:00
Jana Cupova
d4c5d95968 Move class out of function and create to_hexdigest function 2023-02-06 13:17:33 +01:00
Jana Cupova
a79375789d Rewrite generator to IOStream 2023-02-06 13:17:33 +01:00
Mike McLean
a995d0559b generator for reading spliced rpm signatures 2023-02-06 13:17:33 +01:00
Mike McLean
465612daff simplify splice_rpm_sighdr changes 2023-02-06 13:17:33 +01:00
Jana Cupova
21a4cc4d70 Fix review 2023-02-06 13:17:33 +01:00
Tomas Kopecek
19f58b2f4f fix unlogging 2023-02-06 10:56:28 +01:00
Tomas Kopecek
c51802f2ea use_fast_upload=True as default everywhere
Related: https://pagure.io/koji/issue/3529
2023-02-03 09:28:40 +01:00
Tomas Kopecek
ce9a4d4002 remove staticmethod due to py2.7 compatibility 2023-02-01 15:01:15 +01:00
Tomas Kopecek
29d895c78a remove f-strings for py2 compatibility 2023-02-01 15:01:15 +01:00
Tomas Kopecek
cc5c074384 fix decorator 2023-02-01 15:01:15 +01:00
Tomas Kopecek
0179d72296 remove redundant lock 2023-02-01 15:01:15 +01:00
Tomas Kopecek
d387b4e243 fixes 2023-02-01 15:01:15 +01:00
Tomas Kopecek
067e294c6c retain expired session exclusivity 2023-02-01 15:01:15 +01:00
Tomas Kopecek
35070f6ba2 minor fixes 2023-02-01 15:01:15 +01:00
Tomas Kopecek
906958c814 renew exclusive status as part of login 2023-02-01 15:01:15 +01:00
Tomas Kopecek
dcd009e593 remove passing session-id 2023-02-01 15:01:15 +01:00
Jana Cupova
fe57fa18d1 Add decorator for renew expired session 2023-02-01 15:01:15 +01:00
Jana Cupova
1f0c12930d Add closed column to session table and use it in session 2023-02-01 15:01:15 +01:00
Jana Cupova
b7bedc17b5 Fix call auth_method 2023-02-01 15:01:15 +01:00
Tomas Kopecek
29e116448d store original auth method 2023-02-01 15:01:15 +01:00
Jana Cupova
0e07429d66 Create new session when old session was timeout
Fixes: https://pagure.io/koji/issue/3394
2023-02-01 15:01:15 +01:00
Mike McLean
32690976ad rawdata not needed here 2023-01-17 11:54:38 -05:00
Tomas Kopecek
be1bf65f6f Fix callnum handling
Update callnum only where there are other commits

Related: https://pagure.io/koji/issue/3658
2023-01-17 15:07:23 +01:00
Tomas Kopecek
6e1ae7231e replace deprecated distutils
distutils will get removed in python 3.12. It is usage is now replaced
by sysconfig. For py2 version code stays in specfile.

https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated

Related: https://pagure.io/koji/issue/3514
2023-01-16 12:36:04 +01:00
Tomas Kopecek
8bd39594b1 Koji 1.31.1 release notes
Related: https://pagure.io/koji/issue/3652
2023-01-12 11:09:49 +01:00
Jana Cupova
13ea7c1379 Remove DisableGSSAPIProxyDNFallback option on Hub
Fixes: https://pagure.io/koji/issue/3648
2023-01-11 14:14:13 +01:00
Jana Cupova
8a72187e6b Deprecated get_sequence_value
Fixes: https://pagure.io/koji/issue/3634
2022-12-20 14:24:18 +01:00
Tomas Kopecek
be4e0cc44d Use old-style checkout for shortened refs
Related: https://pagure.io/koji/issue/3629
2022-12-19 09:43:15 +01:00
Jana Cupova
a8dd469091 Replace _multiRow, _singleRow, _singleValue with QP
Fixes: https://pagure.io/koji/issue/3581
2022-12-08 09:22:17 +01:00
Jana Cupova
78dee69de4 Create DeleteProcessor class and use it
Fixes: https://pagure.io/koji/issue/3580
2022-12-08 09:18:55 +01:00
Tomas Kopecek
323b221bbe fix flake8 2022-12-05 13:32:26 +01:00
Mike McLean
af183a2686 Emulate old list data 2022-12-05 13:32:26 +01:00
Mike McLean
7015da5f44 alternate approach 2022-12-05 13:32:26 +01:00