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
Tomas Kopecek
8e0bdd7a00
sidetag: allowed list for rpm macros
...
Related: https://pagure.io/koji/issue/3673
2023-03-07 12:53:51 +01:00
Tomas Kopecek
7c96362b1a
PR#3712: download-build: preserve build artefacts last modification time
...
Merges #3712
https://pagure.io/koji/pull-request/3712
Fixes #3711
https://pagure.io/koji/issue/3711
2023-03-07 12:50:17 +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
9799a193c9
fix tests
...
Related: https://pagure.io/koji/issue/3711
2023-03-07 12:50:10 +01:00
Tomas Kopecek
8acb4a4fd3
fix py26 compatibility
2023-03-07 12:50:10 +01:00
Yanko Kaneti
d520dce8a2
download-build: preserve build artefacts last modification time
2023-03-07 12:50:10 +01:00
Tomas Kopecek
f6f808bca7
PR#3716: CLI: cancel error msg
...
Merges #3716
https://pagure.io/koji/pull-request/3716
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-03-06 14:25:01 +01:00
Jana Cupova
334bc39375
CLI: cancel error msg
...
cancel returns error msg when build is not existing
cancel returns error mgs for all not existing tasks/builds
Fixes: https://pagure.io/koji/issue/3715
2023-03-06 14:24:53 +01:00
Tomas Kopecek
403acbeaaa
PR#3706: Delete double check existing source tag, --batch option is unvisible
...
Merges #3706
https://pagure.io/koji/pull-request/3706
Fixes : #3705
https://pagure.io/koji/issue/3705
Clone-tag CLI --batch option is not used now, double check for existing source tag
2023-03-06 14:23:07 +01:00
Jana Cupova
378ea8ef2f
Delete double check existing source tag, --batch option is unvisible
...
Fixes: https://pagure.io/koji/issue/3705
2023-03-06 14:23:00 +01:00
Tomas Kopecek
a6a63ed408
PR#3699: Set daemon = true instead of call deaprecated setDaemon
...
Merges #3699
https://pagure.io/koji/pull-request/3699
Fixes : #3698
https://pagure.io/koji/issue/3698
kojira: setDaemon() is deprecated
2023-03-03 09:36:32 +01:00