diff options
author | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-14 23:52:05 (EST) |
---|---|---|
committer | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-14 23:52:05 (EST) |
commit | dba0a0abdfbd89539090ccb41590e48fefc49c9b (patch) | |
tree | 528aae271d4af2a4a16a4ec397ebbb2fb4f44896 /libopkg/pkg_parse.c | |
parent | d281eab6487605176bd20efcfe21dabbd1514735 (diff) |
opkg: add support for Tags attribute
git-svn-id: http://opkg.googlecode.com/svn/trunk@42 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/pkg_parse.c')
-rw-r--r-- | libopkg/pkg_parse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libopkg/pkg_parse.c b/libopkg/pkg_parse.c index a8a1f2a..5b321b5 100644 --- a/libopkg/pkg_parse.c +++ b/libopkg/pkg_parse.c @@ -282,6 +282,11 @@ int pkg_parse_raw(pkg_t *pkg, char ***raw, pkg_src_t *src, pkg_dest_t *dest) pkg->suggests_str = parseDependsString(*lines, &pkg->suggests_count); break; + case 'T': + if(isGenericFieldType("Tags:", *lines)) + pkg->tags = parseGenericFieldType("Tags", *lines); + break; + case 'M': if(isGenericFieldType("MD5sum:", *lines)) pkg->md5sum = parseGenericFieldType("MD5sum", *lines); |