diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-05-13 09:52:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-13 20:09:56 +0100 |
commit | 12b4543ac9f54c0db0ee4a7ee546a71946a051f8 (patch) | |
tree | bf3f3ec2ae213b10fabc08ae0d35b85f1b62d328 /meta/classes/rootfs_deb.bbclass | |
parent | 63ccc3f266496b909eec472a1671939498d6e5eb (diff) | |
download | poky-12b4543ac9f54c0db0ee4a7ee546a71946a051f8.tar.gz |
classes/rootfs_*: fix splitting package dependency strings
If a + character appears in a version specification within the list of
package dependencies, the version will not be removed from the list in
list_package_depends/recommends leading to garbage appearing in the
dependency graphs generated by buildhistory. To avoid any future
problems due to unusual characters appearing in versions, change the
regex to match almost any character.
Fixes [YOCTO #2451].
(From OE-Core rev: 36d1717e2ad4ca1620ee9f01b524b5ff2f499b26)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_deb.bbclass')
-rw-r--r-- | meta/classes/rootfs_deb.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index b6c706c580..6c9767f98e 100644 --- a/meta/classes/rootfs_deb.bbclass +++ b/meta/classes/rootfs_deb.bbclass | |||
@@ -101,11 +101,11 @@ get_package_filename() { | |||
101 | } | 101 | } |
102 | 102 | ||
103 | list_package_depends() { | 103 | list_package_depends() { |
104 | ${DPKG_QUERY_COMMAND} -s $1 | grep ^Depends | sed -e 's/^Depends: //' -e 's/,//g' -e 's:([=<>]* [0-9a-zA-Z.~\-]*)::g' | 104 | ${DPKG_QUERY_COMMAND} -s $1 | grep ^Depends | sed -e 's/^Depends: //' -e 's/,//g' -e 's:([=<>]* [^ )]*)::g' |
105 | } | 105 | } |
106 | 106 | ||
107 | list_package_recommends() { | 107 | list_package_recommends() { |
108 | ${DPKG_QUERY_COMMAND} -s $1 | grep ^Recommends | sed -e 's/^Recommends: //' -e 's/,//g' -e 's:([=<>]* [0-9a-zA-Z.~\-]*)::g' | 108 | ${DPKG_QUERY_COMMAND} -s $1 | grep ^Recommends | sed -e 's/^Recommends: //' -e 's/,//g' -e 's:([=<>]* [^ )]*)::g' |
109 | } | 109 | } |
110 | 110 | ||
111 | rootfs_check_package_exists() { | 111 | rootfs_check_package_exists() { |