tito
tito copied to clipboard
Additional arguments to build, like specfile, ignored
tito ignores extra args to build. As the docs suggest that nested trees of specfiles are allowed, one might reasonably expect that
cd tito-topdir
tito build rpm/mypackage.spec
would work, but it produces:
pgpackaging$ tito build rpm/postgresql-9.4.spec
ERROR: Unable to locate a .spec file in /path/to/pgpackaging
It looks like tito doesn't use argparse; maybe it's worth looking into. (If tito proves viable to do what I'm trying to do I'll see if I can make these kinds of changes, but right now it's looking like it won't work out).
A hint like "tito expects to find a spec file in the current working directory; cd to the spec file location" might help.
tito uses optparse. There is no CLI argument for pointing to a specific specfile currently. That may be possible but we'd have to work through the implications for things like building old tags when the specfile was at another location, etc. Probably possible.
I had a quick look at how to detect excess args but a change in what seemed like the logical place, the UpstreamBuilder ctor, seemed to have no effect. It might be an issue for subclasses anyway.
The above-referenced commit adds an informational message to help a little.