Closed junaruga closed 7 years ago
What if we have something like BaseRpkgDownloader and inherit FedPkgDownloader and RhPkgDownloader from it?
class FedPkgDownloader(BaseRpkgDownloader):
command = 'fedpkg'
What if we have something like BaseRpkgDownloader and inherit FedPkgDownloader and RhPkgDownloader from it?
That's great idea. I am going to use the way. Thanks.
Should be fixed by 9f74474044e34f835313420f1bfe3f8c6932ed2c https://github.com/sclorg/rpm-list-builder/pull/88
Issue
This issue is from
https://github.com/sclorg/rpm-list-builder/issues/66#issuecomment-316033852
Right now
rhpkg
is hardcoded. It's time to fix it.Possible solution
--pkg-cmd [fedpkg|rhpkg]
option (default: fedpkg). The option name is inspired frommock --dnf-cmd
.--rhpkg
option. If it is not specified, it is run asfedpkg
.But if
--download rhpkg
is specified, the package cmd is run asrhpkg
. But if--download fedpkg
(future new feature) is specified, the package cmd is run asfedpkg
.Right now I prefer the solution 1.