No description
Zbigniew Jędrzejewski-Szmek
afbee03f26
We shouldn't crash when network communication fails, or when a subprocess fails. The traceback is unsightly, and causes bug reports to be files. Let's just print the error. $ PYTHONPATH=$HOME/python/rust2rpm python -m rust2rpm ./asdfasdf.asdf error: the manifest-path must be a path to a Cargo.toml file Subcommand failed with code 101: cargo read-manifest --manifest-path=./asdfasdf.asdf $ PYTHONPATH=$HOME/python/rust2rpm python -m rust2rpm asdfasdf Failed to download metadata: 404 Client Error: Not Found for url: https://crates.io/api/v1/crates/asdfasdf/versions Fixes #145. (This does the relatively easy thing of printing the original message. In principle we could try to figure out what the exact error was and print uniform error messages. But that'd be quite a lot of work, and fairly brittle, because we'd need to cover all possible errors. So let's do this thing which should be good enough in 95% of cases.) |
||
---|---|---|
data | ||
rust2rpm | ||
tools | ||
.gitignore | ||
LICENSE | ||
MANIFEST.in | ||
README.md | ||
requirements.txt | ||
setup.py | ||
test.py | ||
tox.ini |
rust2rpm
Convert Rust crates to RPM.
.rust2rpm.conf
You can place configuration file which is used as source for additional information for spec generation.
Some simple example would be better than many words ;)
[DEFAULT]
unwanted-features =
compiler_builtins
rustc-dep-of-std
buildrequires =
pkgconfig(foo) >= 1.2.3
lib.requires =
pkgconfig(foo) >= 1.2.3
[fedora]
bin.requires =
findutils
buildrequires =
lib.requires =
lib+default.requires =
pkgconfig(bar) >= 2.0.0