Skip to content

Commit

Permalink
backend: fix the migrated Pulp repository name
Browse files Browse the repository at this point in the history
The `init_project` method expect CoprDir name without the owner prefix. This
resulted in repository names containing owner name twice.
  • Loading branch information
FrostyX committed Feb 13, 2025
1 parent 1434983 commit 8695206
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/run/copr-change-storage
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ def main():
# are currently writing into the results directory. Otherwise
# we can end up with incosystent data in Pulp.

full_name = "{0}/{1}".format(owner, subproject)
result = storage.init_project(full_name, chroot)
result = storage.init_project(subproject, chroot)
if not result:
log.error("Failed to initialize project: %s", resultdir)
ok = False
Expand Down

0 comments on commit 8695206

Please sign in to comment.