libopkg: accept alternative notation for "Replaces" control field
authorJo-Philipp Wich <jo@mein.io>
Fri, 18 Jan 2019 08:01:10 +0000 (09:01 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 18 Jan 2019 08:01:10 +0000 (09:01 +0100)
commit1504d35f123980bf322df99fb434f6fda6e3ecd2
tree1b36a32e75eb11228e838e98cbdf6606f75eb3ac
parentd217daf1b32d88a48659155b1faf747982175c5d
libopkg: accept alternative notation for "Replaces" control field

The presence of a "Replaces:" tag in any package feed list will cause
opkg prior to "d217daf libopkg: fix replacelist parsing and writing"
to segfault while parsing such a list.

Add a hack which lets opkg recognize a "Replace2" field and handle
it identically to "Replaces".

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/pkg_parse.c