Red Hat Bugzilla – Bug 1475847
Use pyrpkg's "import" for srpm imports, don't re-implement
Last modified: 2017-08-03 09:31:06 EDT
Historically we used 'pyrpkg' (alternative to fedpkg import) for importing
uploaded srpms (or srpms pointed to by url).
Now, copr reimplements this itself (extracts that by rpm2cpio, reading the
list with cpio, removing old files from distgit, etc., etc..).
This is architectonic issue and maintenance disaster; please implement
the functionality in pyrpkg so we don't duplicate the efforts or (if you
plan to experiment in Fedora Copr) please provide an option so I can have
limited feature set (but using the proper tools).
That would mean we would again need to build srpms on copr-dist-git or have two ways of importing - one directly from downstream or upstream repo and another from a srpm. The current approach has an advantage of utilizing only one way of doing things. If the functionality we need was present in pyrpkg, then we would be able to use it. It is not however and won't be in near feature.
This is not a bug, nor a feature request, however. It is just 'how-to' do something.