Matej Focko
875769d8e2
Do not expect the package name to be second
...
Do not assume that the package name is second when validating the
spelling of the package name with a specified namespace.
This holds for CentOS itself as there is only one namespace in front of
the package, e.g., `rpms` or `modules`. However when using the
`centpkg-sig`, the packages reside under the SIGs' namespace adding
an additional layer which yields the `rpms` for second part of the path
instead of the package name.
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-06-10 09:45:56 +02:00
Troy Dawson
9106242667
No longer block on possible bad branch names.
...
This is because we cannot confidently check if we are pushing
to a fork or not.
Instead give a warning, and proceed.
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2024-04-23 09:37:40 -07:00
Troy Dawson
506f6ce85f
Bump to version 0.8.3
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2024-03-15 13:36:20 -07:00
Stephen Gallagher
3c9d74b7f2
Update branch detection for c10s
...
In RHEL 10, the internal branch names have dropped the extra .0
Additionally, there will now also be a rhel-X.0-beta branch.
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2024-03-14 11:09:36 -04:00
Troy Dawson
b02ad77348
Bump to version 0.8.2
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2024-02-21 09:07:10 -08:00
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
df70e4f1c9
Mark fork tests as expected failures
2024-02-19 14:51:35 -08:00
Troy Dawson
4d66e03581
Bump to version 0.8.1
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-09-07 09:47:47 -07: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
Carl George
790841602b
Add minimum rpkg version
...
This is currently being enforced in the RPM spec file, but it would be
better to enforce it in the Python metadata.
4bd83a5398
2023-09-01 23:29:44 -05:00
Carl George
248917149b
Add missing python-gitlab dependency
...
This was first introduced in 5fd982bf00
.
2023-09-01 23:29:30 -05:00
Carl George
bcb8595f04
Clean up dependencies
...
This change specifies the dependencies directly in setup.py, instead of
in a requirements.txt file that is parsed by a helper function.
2023-09-01 23:24:15 -05: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
b60371f902
Bump to version 0.8.0
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-08-28 15:57:17 -07: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
fbdb66146c
Bump to version 0.7.4
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-07-10 14:29:50 -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
87795b6ebf
Bump to version 0.7.3
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-05-03 06:54:55 -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
0bd479fa66
Bump to version 0.7.2
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-03-14 10:08:32 -07: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
9f6c003799
Bump to version 0.7.1
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-03-01 08:19:44 -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
b244b2331e
Bump to version 0.7.0
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-02-28 13:53:52 -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
Troy Dawson
0271c67c5a
Bump to version 0.6.9
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2022-12-16 07:00:56 -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
5cc23ef01e
Merge commit 'a4a4edc' into develop
2022-11-03 06:55:43 -07:00
Troy Dawson
47edd62c22
Bump to version 0.6.8
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2022-11-03 06:27:11 -07:00
Troy Dawson
a4a4edc312
Bump to version 0.6.8
...
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2022-11-01 06:40:45 -07:00
Troy Dawson
a918727374
Clean code, fix rhel7
2022-10-31 14:25:26 -07:00
Troy Dawson
84078356c2
Merge branch 'fix-sig' of ssh://git.centos.org/forks/tdawson/centos/centpkg into fix-sig
2022-10-10 15:05:56 -07:00
Troy Dawson
70ef295451
Fix download sources on SIG branches
2022-10-10 22:05:22 +00:00