Correct parsing error
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 11 Jun 2014 07:09:39 +0000 (09:09 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 11 Jun 2014 07:09:39 +0000 (09:09 +0200)
commit77ce60d0f6baac66c6cec5d840363309d59f71e2
tree5e46abf3d1e6e6593c54e86ac57c232286deb37f
parent03faf6a96c62b57550c9d9a2ed7ba75be8914b79
Correct parsing error

While processing the pre/post install/uninstall scripts, in the case of
a one-line script of the form "%post -n <package_name> -p <command>",
if the package name or the command contains "-p" or "-n", parsing is
wrong. Usig " -p " and " -n " corrects this error in our cases. The
only package found with this error is pkmgr-info-parser. If a command
would happen to have a "-p" or "-n" option, parsing would fail, even
with this patch. Another solution would need to be found.

Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
tools/spec2yocto.py