Update issue and PR URLs from pagure to forgejo

Update issue and pull request URLs in Python source code to reflect
the migration from pagure.io to forge.fedoraproject.org. Changes:
- pagure.io/koji/issue/N → forge.fedoraproject.org/koji/koji/issues/N
- pagure.io/koji/pull-request/N → forge.fedoraproject.org/koji/koji/pulls/N
- pagure.io/pungi/issue/N → forge.fedoraproject.org/pungi/pungi/issues/N

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Tomas Kopecek 2026-09-07 11:47:09 +02:00
commit 8e5cae7a96
9 changed files with 16 additions and 16 deletions

View file

@ -526,7 +526,7 @@ def handle_block_pkg(goptions, session, args):
session.multicall = True
for package in args[1:]:
# force is not supported on older hub, so use it only explicitly
# https://pagure.io/koji/issue/1388
# https://forge.fedoraproject.org/koji/koji/issues/1388
if options.force:
session.packageListBlock(tag, package, force=options.force)
else:
@ -1947,7 +1947,7 @@ def handle_prune_signed_copies(goptions, session, args):
help="File to read tag protect patterns from")
parser.add_option("--trashcan-tag", default="trashcan", help="Specify trashcan tag")
# Don't use local debug option, this one stays here for backward compatibility
# https://pagure.io/koji/issue/2084
# https://forge.fedoraproject.org/koji/koji/issues/2084
parser.add_option("--debug", action="store_true", default=goptions.debug, help=SUPPRESS_HELP)
(options, args) = parser.parse_args(args)
# different ideas/modes
@ -2477,7 +2477,7 @@ def handle_list_signed(goptions, session, args):
description = "You must have local access to Koji's topdir filesystem."
parser = OptionParser(usage=get_usage_str(usage), description=description)
# Don't use local debug option, this one stays here for backward compatibility
# https://pagure.io/koji/issue/2084
# https://forge.fedoraproject.org/koji/koji/issues/2084
parser.add_option("--debug", action="store_true", default=goptions.debug, help=SUPPRESS_HELP)
parser.add_option("--key", help="Only list RPMs signed with this key")
parser.add_option("--build", help="Only list RPMs from this build")
@ -4752,7 +4752,7 @@ def anon_handle_list_history(goptions, session, args):
usage = "usage: %prog list-history [options]"
parser = OptionParser(usage=get_usage_str(usage), option_class=TimeOption)
# Don't use local debug option, this one stays here for backward compatibility
# https://pagure.io/koji/issue/2084
# https://forge.fedoraproject.org/koji/koji/issues/2084
parser.add_option("--debug", action="store_true", default=goptions.debug, help=SUPPRESS_HELP)
parser.add_option("--build", help="Only show data for a specific build")
parser.add_option("--package", help="Only show data for a specific package")

View file

@ -625,7 +625,7 @@ created following environments:
* Light container-based environment (e.g. can't build images):
https://github.com/tkopecek/koji-container-dev
* Vagrant-based: https://pagure.io/koji-vagrant
* Vagrant-based: https://pagure.io/koji/pull-request/420
* Vagrant-based: https://forge.fedoraproject.org/koji/koji/pulls/420
Building and Deploying Changes
==============================
@ -656,7 +656,7 @@ Submitting Changes
To submit code changes for Koji, please file a pull request in Pagure.
https://pagure.io/koji/pull-requests
https://forge.fedoraproject.org/koji/koji/pulls
Here are some guidelines on producing preferable pull requests.

View file

@ -579,7 +579,7 @@ def ensuredir(directory):
raise
# Work around an nfs glitch. Reading the parent dir gets the os to
# notice the new dir in a race
# See https://pagure.io/koji/issue/4417
# See https://forge.fedoraproject.org/koji/koji/issues/4417
_listdir(parent)
if not os.path.isdir(directory):
@ -607,7 +607,7 @@ def daemonize():
os._exit(0)
os.setsid()
# fork again, no need to ignore SIGHUP
# https://pagure.io/koji/issue/672
# https://forge.fedoraproject.org/koji/koji/issues/672
# https://code.activestate.com/recipes/278731-creating-a-daemon-the-/
pid = os.fork()
if pid:
@ -2170,7 +2170,7 @@ def check_rpm_file(rpmfile):
rpmfile can either be a file name or a file object
This check is used to detect issues with RPMs before they break builds
See: https://pagure.io/koji/issue/290
See: https://forge.fedoraproject.org/koji/koji/issues/290
"""
if isinstance(rpmfile, six.string_types):
with open(rpmfile, 'rb') as fo:

View file

@ -811,7 +811,7 @@ def _rmtree_nofork(path, logger=None):
forming long paths.
"""
# implemented to avoid forming long paths
# see: https://pagure.io/koji/issue/201
# see: https://forge.fedoraproject.org/koji/koji/issues/201
logger = logger or logging.getLogger('koji')
try:
st = os.lstat(path)

View file

@ -12,7 +12,7 @@ Alias /kojihub /usr/share/koji-hub/kojiapp.py
# see: https://cryptography.io/en/latest/faq/#starting-cryptography-using-mod-wsgi-produces-an-internalerror-during-a-call-in-register-osrandom-engine
WSGIScriptReloading Off
# ^ reloading breaks hub "firstcall" check
# see: https://pagure.io/koji/issue/875
# see: https://forge.fedoraproject.org/koji/koji/issue/875
<IfVersion < 2.4>
Order allow,deny
Allow from all

View file

@ -311,7 +311,7 @@ def get_event():
get the same event.
This cache is cleared between the individual calls in a multicall.
See: https://pagure.io/koji/pull-request/74
See: https://forge.fedoraproject.org/koji/koji/pulls/74
"""
if hasattr(context, 'event_id'):
return context.event_id

View file

@ -2762,7 +2762,7 @@ def repo_init(tag, task_id=None, event=None, opts=None):
# it is possible to see the results of other committed transactions
latest = not tinfo['extra'].get('repo_include_all', False)
# Note: the repo_include_all option is not recommended for common use
# see https://pagure.io/koji/issue/588 for background
# see https://forge.fedoraproject.org/koji/koji/issues/588 for background
rpms, builds = readTaggedRPMS(tag_id, event=event_id, inherit=True, latest=latest)
groups = readTagGroups(tag_id, event=event_id, inherit=True)
@ -7986,7 +7986,7 @@ def add_external_rpm(rpminfo, external_repo, strict=True):
insert.execute()
except Exception:
# if this failed, it likely duplicates one just inserted
# see: https://pagure.io/koji/issue/788
# see: https://forge.fedoraproject.org/koji/koji/issues/788
savepoint.rollback()
previous = check_dup()
if previous:

View file

@ -16,7 +16,7 @@ class ProfilesTestCase(unittest.TestCase):
def test_profile_threading(self):
""" Test that profiles thread safe"""
# see: https://pagure.io/koji/issue/58 and https://pagure.io/pungi/issue/253
# see: https://forge.fedoraproject.org/koji/koji/issues/58 and https://forge.fedoraproject.org/pungi/pungi/issues/253
# loop a few times to increase chances of hitting race conditions
for i in range(256):
errors = {}

View file

@ -44,7 +44,7 @@ logfile=/var/log/kojira.log
; Monitor external repos and trigger the appropriate Koji repo regenerations
; when they change. Note that you need to have your database set to use UTC,
; as otherwise you can end with weird behaviour. For details see
; https://pagure.io/koji/issue/2159
; https://forge.fedoraproject.org/koji/koji/issue/2159
; check_external_repos = false
; don't attempt to remove repos on non-default volumes