Add a `packages` target to build-with-container.py that requests a build
of packages, whatever package type is native to the distro selected.
For example `./src/script/build-with-container.py -d ubuntu22.04 -e
packages` will automatically select a deb packages build where
`./src/script/build-with-container.py -d centos9 -e packages` will
trigger rpm packages to be built. The underlying package-type specific
targets remain unchanged.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit
37b7d509c59348ae11badd6673cb49ce9ce303fa)
def from_alias(cls, value):
return cls.aliases()[value]
+ @classmethod
+ def uses_rpmbuild(cls):
+ # right now this is the same as uses_dnf, but perhaps not always
+ # let's be specific in our interface
+ return cls.uses_dnf() # but lazy in the implementation
+
@classmethod
def aliases(cls):
return {