libopkg: do not modify original version string in parse_version()
authorJo-Philipp Wich <jo@mein.io>
Fri, 17 Feb 2017 19:01:42 +0000 (20:01 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 17 Feb 2017 19:01:42 +0000 (20:01 +0100)
The parse_version() function might be parsing the version string of another
pkg_t instance so we must not modify it inplace to truncate the revision
part, otherwise we will clobber the original version, leading to failing
comparisations later on.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

No differences found