• Thomas Haller's avatar
    contrib/rpm: quote snapshot/git_sha variables in spec-file · a0b976ac
    Thomas Haller authored
    Otherwise the following fails:
        $ ./contrib/fedora/rpm/build_clean.sh -g -s x.1
        error: parse error in expression
        error: /data/src/_NetworkManager/contrib/fedora/rpm/NetworkManager.20190207-165257.XOkW4i/SPECS/NetworkManager.spec:35: bad %if condition
        ERROR: rpmbuild FAILED
    Even with the fix, not all characters are allowed:
        $ ./contrib/fedora/rpm/build_clean.sh -g -s x-1
        error: line 112: Illegal char '-' (0x2d) in: Release: 22165.x-1.25b13e2053.fc29
        ERROR: rpmbuild FAILED
Last commit
Last update
editors Loading commit data...
fedora Loading commit data...
scripts Loading commit data...
test Loading commit data...