Tomas Kopecek
00a5f3be20
PR#3754: Unify behavior when result is empty in get_maven/image/win/build
...
Merges #3754
https://pagure.io/koji/pull-request/3754
Fixes : #3753
https://pagure.io/koji/issue/3753
Unify behavior for empty result in get_maven_build as get_image_build and get_win_build
2023-04-03 15:28:29 +02:00
Jana Cupova
027cca702d
Unify behavior when result is empty in get_maven/image/win/build
...
Fixes: https://pagure.io/koji/issue/3753
2023-04-03 15:28:22 +02:00
Tomas Kopecek
ad8ab366fd
PR#3746: Fix backward compatibility
...
Merges #3746
https://pagure.io/koji/pull-request/3746
Fixes : #3715
https://pagure.io/koji/issue/3715
CLI: cancel returns False when build is not existing and cancel returns first error message when more tasks are not existing
2023-04-03 15:25:27 +02:00
Jana Cupova
9a6daef300
Fix backward compatibility
...
Fixes: https://pagure.io/koji/issue/3715
2023-04-03 15:25:20 +02:00
Tomas Kopecek
002891e1ac
PR#3740: ArgumentParser instead of ArgumentParser in sidetag CLI plugin
...
Merges #3740
https://pagure.io/koji/pull-request/3740
Fixes : #3739
https://pagure.io/koji/issue/3739
Sidetag CLI: OptionParser instead of ArgumentParser for consistency with all CLI commands
2023-04-03 15:23:28 +02:00
Jana Cupova
2139b237d0
ArgumentParser instead of ArgumentParser in sidetag CLI plugin
...
Fixes: https://pagure.io/koji/issue/3739
2023-04-03 15:23:21 +02:00
Tomas Kopecek
3f3c56fd75
PR#3707: Add repoID in listBuildroots and create repoinfo command
...
Merges #3707
https://pagure.io/koji/pull-request/3707
Fixes : #2549
https://pagure.io/koji/issue/2549
RFE: query buildroots by repo
2023-04-03 15:20:25 +02:00
Jana Cupova
de192e10f1
Add repoID in listBuildroots and create repoinfo command
...
Add repoID param in listBuildroots and show result in repoInfo
Create new command repoinfo which provides equivalent info as repoInfo
Add number of buildroots related to repo in repoinfo page
Fixes: https://pagure.io/koji/issue/2549
2023-04-03 15:20:18 +02:00
Tomas Kopecek
a48172924f
PR#3752: Increase hub unit tests 03-02
...
Merges #3752
https://pagure.io/koji/pull-request/3752
2023-03-29 14:05:25 +02:00
Jana Cupova
bbd841c0d4
Increase hub unit tests 03-02
2023-03-29 13:49:32 +02:00
Tomas Kopecek
6d01a3f63d
PR#3747: Fix editSidetag fstring variable formats and fix test unit tests
...
Merges #3747
https://pagure.io/koji/pull-request/3747
Fixes : #3748
https://pagure.io/koji/issue/3748
editSidetag: fstring variables have {variable:r} and it returns error
2023-03-27 12:43:57 +02:00
Jana Cupova
889770e74c
Fix editSidetag fstring variable formats and fix test unit tests
...
Fixes: https://pagure.io/koji/issue/3748
2023-03-24 11:40:44 +01:00
Tomas Kopecek
b208e77f6a
PR#3722: Increate sidetag hub unit tests
...
Merges #3722
https://pagure.io/koji/pull-request/3722
Relates: #3723
https://pagure.io/koji/issue/3723
Increase unit tests for hub/cli/sidetags
2023-03-23 14:01:48 +01:00
Jana Cupova
c8bcb496d4
Increate sidetag hub unit tests
2023-03-23 14:01:41 +01:00
Tomas Kopecek
d5eea0c6a5
PR#3745: Fix pkglist_add when extra_arches is None
...
Merges #3745
https://pagure.io/koji/pull-request/3745
Fixes : #3744
https://pagure.io/koji/issue/3744
[hub] pkgListAdd rewrites extra_arches value None to empty string
2023-03-23 13:23:50 +01:00
Jana Cupova
fe0bf6dc86
Fix pkglist_add when extra_arches is None
...
Fixes: https://pagure.io/koji/issue/3744
2023-03-23 13:23:42 +01:00
Tomas Kopecek
f472ab9724
PR#3731: CLI list-untagged: One space only instead of double space before references
...
Merges #3731
https://pagure.io/koji/pull-request/3731
Fixes : #3730
https://pagure.io/koji/issue/3730
Double space before references in list-untagged
2023-03-23 13:21:53 +01:00
Jana Cupova
175c618e5b
CLI list-untagged: One space only instead of double space before references
...
Fixes: https://pagure.io/koji/issue/3730
2023-03-23 13:21:38 +01:00
Tomas Kopecek
c0d537c4f0
PR#3703: RawHeader improvements
...
Merges #3703
https://pagure.io/koji/pull-request/3703
Fixes : #3713
https://pagure.io/koji/issue/3713
RawHeader - get list of strings items
2023-03-23 13:20:14 +01:00
Mike McLean
54996d9e63
fix unit test
2023-03-23 13:20:06 +01:00
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
Tomas Kopecek
e661b399f7
PR#3738: Increase CLI uni tests
...
Merges #3738
https://pagure.io/koji/pull-request/3738
Fixes : #3723
https://pagure.io/koji/issue/3723
Increase unit tests for hub/cli/sidetags
2023-03-21 12:22:09 +01:00
Jana Cupova
3e09338db7
Increase CLI uni tests
2023-03-21 12:22:02 +01:00
Tomas Kopecek
ac6ae66bb0
PR#3720: list-tagged: only check for build dir when --sigs is given
...
Merges #3720
https://pagure.io/koji/pull-request/3720
Fixes : #3719
https://pagure.io/koji/issue/3719
list-tagged --paths does not work without mount
2023-03-20 13:40:46 +01:00
Mike McLean
00f3a78f09
list-tagged: only check for build dir when --sigs is given
2023-03-20 13:40:27 +01:00
Tomas Kopecek
b75df3869d
PR#3727: Fix mtime logic for py2.x
...
Merges #3727
https://pagure.io/koji/pull-request/3727
Relates: #3711
https://pagure.io/koji/issue/3711
download-build: preserve build artefacts last modification time
2023-03-16 09:47:02 +01:00
Tomas Kopecek
21dba45bfc
Fix mtime logic for py2.x
...
Related: https://pagure.io/koji/issue/3711
2023-03-16 09:46:54 +01:00
Tomas Kopecek
e2d9511a81
PR#3734: Fix timezone in clone-tag test case
...
Merges #3734
https://pagure.io/koji/pull-request/3734
Fixes : #3733
https://pagure.io/koji/issue/3733
clone-tag unit test fails in other timezones
2023-03-15 12:49:02 +01:00
Jana Cupova
886e8856b6
Fix timezone in clone-tag test case
...
Fixes: https://pagure.io/koji/issue/3733
2023-03-15 12:48:55 +01:00
Tomas Kopecek
72c6495acb
PR#3690: only pad header lengths for signature headers
...
Merges #3690
https://pagure.io/koji/pull-request/3690
Fixes : #3689
https://pagure.io/koji/issue/3689
Koji can report incorrect header lengths
2023-03-14 11:08:24 +01:00
Mike McLean
aebff00673
unit test: more closely mimic rpm2cpio behavior when reading past header
2023-03-14 11:08:16 +01:00
Mike McLean
accdeb3c63
unit test: close fd
2023-03-14 11:08:16 +01:00
Mike McLean
85ea7bd736
unit test
2023-03-14 11:08:16 +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
Tomas Kopecek
6d80b3b4af
PR#3679: vm: Retry libvirt connection
...
Merges #3679
https://pagure.io/koji/pull-request/3679
Fixes : #985
https://pagure.io/koji/issue/985
kojivmd loses connection to libvirt
2023-03-09 15:17:39 +01:00
Tomas Kopecek
3e8d856bb1
use wrapper only in main thread
2023-03-09 15:17:32 +01:00
Tomas Kopecek
7cc3fe6a52
try to close failing connection
2023-03-09 15:17:32 +01:00
Tomas Kopecek
22c88fcce3
vm: Retry libvirt connection
...
Related: https://pagure.io/koji/issue/985
2023-03-09 15:17:32 +01:00
Tomas Kopecek
4039daac72
PR#3687: koji-gc: fail on additional arguments
...
Merges #3687
https://pagure.io/koji/pull-request/3687
Fixes : #3685
https://pagure.io/koji/issue/3685
koji-gc doesn't warn about superfluous args
2023-03-09 11:33:41 +01:00
Tomas Kopecek
aa8a3f634a
koji-gc: fail on additional arguments
...
Related: https://pagure.io/koji/issue/3685
2023-03-09 11:33:34 +01:00
Tomas Kopecek
c82543a668
PR#3674: sidetag: allowed list for rpm macros
...
Merges #3674
https://pagure.io/koji/pull-request/3674
Fixes : #3673
https://pagure.io/koji/issue/3673
editing rpm macros in sidetag should be based on allowed list
2023-03-07 12:53:58 +01:00