Troy Dawson
9f10a855db
Set CS10 and RHEL10 to latest
2024-02-21 09:03:07 -08:00
Troy Dawson
0fb26c5d52
Allow openjdk branches
2024-02-19 14:58:27 -08:00
Troy Dawson
b66e8a61f5
Drop Python 2 compatibility
2024-02-19 14:52:47 -08:00
Troy Dawson
e25a639d57
Add rhel-target none option
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-09-07 09:36:01 -07:00
Troy Dawson
a62668c923
urlgrabber code has been commented out for 9 years. remove it
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-08-29 09:03:16 -07:00
Troy Dawson
c4fdfc29d1
koji was never directly required
...
koji was only needed because rpkg libraries required koji
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-08-29 08:52:04 -07:00
Carl George
572f6b3fac
Remove unused pytz import
...
See https://bugzilla.redhat.com/show_bug.cgi?id=2235255
2023-08-28 22:26:18 -05:00
Troy Dawson
aededb449c
Add current-state option
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-08-28 15:52:41 -07:00
Troy Dawson
874d108037
Use correct format for divergent_branch
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-08-28 15:45:03 -07:00
Troy Dawson
6b939c428f
Update Stabilization Phase Detection
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-08-28 15:10:27 -07:00
Troy Dawson
739c746983
On errors: output to stderr, exit with code 1
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-08-28 09:14:12 -07:00
Troy Dawson
75ceb34ee8
Treat all slashes the same
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-08-28 08:49:48 -07:00
Troy Dawson
fb42b297a7
Correctly clone rpms/<package>
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-08-15 07:03:01 -07:00
Troy Dawson
af648d3af8
Exit with message if unable to look for file
2023-07-10 21:24:30 +00:00
Anton Bobrov
5e8e77dfad
Add StreamLookasideCache specific get_download_url method
2023-07-07 10:50:21 +02:00
Troy Dawson
5fd982bf00
Check package spelling (CS-767)
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-06-06 14:21:36 -07:00
Troy Dawson
bd2c302d34
do not check with scratch builds
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-05-02 15:05:21 -07:00
Troy Dawson
37fb23b990
Better error message when phase determining fails
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-05-02 14:46:32 -07:00
Troy Dawson
46473e9c83
Update phase lookup
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-05-02 12:56:30 -07:00
Todd Zullinger
fe493e3aab
avoid redirection warning when cloning anonymously
...
Using `centpkg clone -a` results in a warning from git due to the URL
being redirected:
$ centpkg clone -a git
Cloning into 'git'...
warning: redirecting to https://gitlab.com/redhat/centos-stream/rpms/git.git/
...
Update anongiturl to point to the real URL for HTTP cloning. The
addition of the trailing slash does not raise a warning, so it may be
safely left off the URL.
2023-04-07 13:56:59 -04:00
Troy Dawson
f6364cdcd1
Better messages. Do not check if not needed.
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-03-14 08:23:35 -07:00
Troy Dawson
49e81c3524
build_client is not just stream
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-03-07 07:40:10 -08:00
Troy Dawson
00baeb2072
Only do rhel-target if we are centpkg, not centpkg-sig
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-03-01 08:15:06 -08:00
Troy Dawson
24b8461cb3
Fix logic
2023-02-27 10:23:31 -08:00
Troy Dawson
315e8a0cdd
Proper log output
2023-02-27 09:54:37 -08:00
Troy Dawson
1e7ef8239a
Require --rhel-target
2023-02-23 10:01:39 -08:00
Stephen Gallagher
5a7f92eab3
Improve package name detection
...
Look up the parent repo of forks for the package name.
This requires the user to have a valid Gitlab API token in
their configuration. It will raise an error if it takes this
path and does not have permission.
Note that when https://gitlab.com/gitlab-org/gitlab/-/issues/361952
is fixed in Gitlab, the token will not be required in this case.
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2022-11-18 15:27:07 -05:00
Troy Dawson
a918727374
Clean code, fix rhel7
2022-10-31 14:25:26 -07:00
Troy Dawson
70ef295451
Fix download sources on SIG branches
2022-10-10 22:05:22 +00:00
Troy Dawson
e1698bf664
centpkg-sig works pulling sources and srpm
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2022-10-10 22:05:22 +00:00
David Fan
179163f729
added rhel macro to the rpmdefines
2022-10-05 15:13:45 +01:00
Carl George
73d52905ad
Migrate from pyOpenSSL to cryptography
...
pyOpenSSL upstream "strongly suggests" switching to cryptography.
959a031fa3
Resolves #52
2022-09-22 18:01:06 +00:00
Troy Dawson
04734c4692
Fix SIGLookasideCache super certs
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2022-09-09 08:51:04 -07:00
Ondrej Nosek
9fb9aa563c
rpmdefines changes depending on rpkg
...
Recent changes on rpkg side require modification in centpkg too.
rpmdefines in rpkg had to be changed because of a safer way
of executing the 'rpm' command in the 'subprocess' python library
(without shell=True argument).
A related change in rpkg: https://pagure.io/rpkg/pull-request/620
Other tools depending on rpkg (rhpkg, fedpkg, centpkg, rfpkg) are
affected.
Example for fedpkg: https://pagure.io/fedpkg/pull-request/486
Signed-off-by: Ondrej Nosek <onosek@redhat.com>
2022-08-24 01:15:05 +02:00
Leonardo Rossetti
f5ba2652d9
centos-sig lookaside cache support
2022-04-14 08:35:39 -03:00
lrossett
cb72cfd724
fix headers typo
2021-06-15 18:27:52 -03:00
Merlin Mathesius
1222633bb4
Correct a few minor typos in docstrings
...
Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
2021-06-08 19:25:10 +00:00
Merlin Mathesius
bb525ad895
Add support for RHEL style module stream branch names
...
Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
2021-06-08 19:24:17 +00:00
Mohan Boddu
615d8f3e38
Adding the ability to request suffixed side tags
...
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
2021-06-01 18:18:25 -04:00
lrossett
4588ec7272
using git.Repo instead of git.cmd
2021-05-25 00:51:28 +00:00
lrossett
b201d4afe0
do not use branch pattern name if using a forked origin
2021-05-25 00:51:28 +00:00
Mohan Boddu
464a71d87f
Disabling pushing to c9s branch in the fork
...
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
2021-05-11 15:42:04 -04:00
Merlin Mathesius
329e001c49
Add MBS configuration
...
Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
2021-05-05 13:54:59 -05:00
Brian Stinson
3055b37279
update the lookaside location
...
Signed-off-by: Brian Stinson <bstinson@redhat.com>
2021-04-28 01:36:14 +00:00
lrossett
6bb6dfb49d
set correct c9s branchre
2021-04-19 08:33:25 -03:00
Carl George
5b7b4629fa
Determine username from GitLab API
2021-04-16 16:40:34 -05:00
lrossett
29dd93721c
lookaside repo name fix
2021-04-16 12:56:30 -03:00
Carl George
5b6d175224
Enable user config
...
Read both `/etc/rpkg/centpkg.conf` and `~/.config/rpkg/centpkg.conf`
config files, merging the results. Also define a `--user-config` flag
to override the later config path, similar to `--config`. This approach
is borrowed from fedpkg.
Fixes #23
2021-04-15 22:02:09 -05:00
Carl George
8e89ac5638
Add stream koji profile with public URLs
2021-04-13 18:39:39 -05:00
lrossett
794ab0a8b7
dynamic cli with no need for sig extra checks
2021-04-13 18:38:20 -05:00