packit
packit copied to clipboard
Pull from upstream for non git upstreams (or no upstreams at all)
Description
We want to be able to call the pull-from-upstream procedure without a git upstream or without a git upstream at all.
#2136 is a draft PR example we want to improve with a better refactoring. This card is a follow-up for #2099
Pull from upstream needs to call actions in the Upstream object.
The Upstream object inherits from the PackitRepositoryBase.
We need a new kind of Upstream object, suppose to name this new object NonGitUpstream.
We need to reuse from the PackitRepositoryBase the action handler related code.
- [x] #2287
- [ ] Reuse the same ActionManager/Handler in the new
NonGitUpstreamand in the oldUpstream - [ ] The new
NonGitUpstreamshould share the same interface with the oldUpstreambut different implementations for everything is accessing a git repo. It should not depend onPackitRepositoryBase. - [ ] Make the
sync_downstreammethod use the newNonGitUpstreamwhen noupstream_project_urlis given for apull-from-upstreaminvocation - [ ] Adjust things also for packit-service