X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tic%2Fparser%2Frepo_parser.py;h=69104e1558ee3249b6fe21c1582525939b27ee7b;hb=56ce9e67e9d4ab820a28878af54ac0d097435bc9;hp=95c6b86ddedd9ce6dc144b65535d7bfc6ed837a0;hpb=2aec5d13456aee7a0ec356089be91edaf317dede;p=archive%2F20170607%2Ftools%2Ftic-core.git
diff --git a/tic/parser/repo_parser.py b/tic/parser/repo_parser.py
index 95c6b86..69104e1 100644
--- a/tic/parser/repo_parser.py
+++ b/tic/parser/repo_parser.py
@@ -73,25 +73,27 @@ class RepodataParser(object):
pkg_info['id'] = pkg_id
pkg_info['name'] = pkg_name
pkg_info['arch'] = pkg.findtext(tag_dic['arch'])
+ pkg_info['summary'] = pkg.findtext(tag_dic['summary'])
pkg_info['selfChecked'] = False # for web-ui tree
# Parsing meta-pkg using meta naming rule
meta_match = META_PATTERN.search(pkg_info['name'])
if meta_match is not None:
- #print(meta_match.group(0), ', ', meta_match.group('meta'), ', ', meta_match.group('pkgname'))
if meta_match.group('meta') == 'root':
- meta_info['root'].append([pkg_info['name']])
+ meta_info['root'].append([pkg_info['name'], pkg_info['summary']])
pkg_info['meta'] = 'root'
elif meta_match.group('meta') == 'sub1':
sub1_match = META_SUB1_PATTERN.search(meta_match.group('pkgname'))
- meta_info['sub1'].append([pkg_info['name'],
- ''.join([META_PREFIX_ROOT, sub1_match.group('root')])])
+ meta_info['sub1'].append([pkg_info['name'],
+ ''.join([META_PREFIX_ROOT, sub1_match.group('root')]),
+ pkg_info['summary']])
pkg_info['meta'] = 'sub1'
elif meta_match.group('meta') == 'sub2':
sub2_match = META_SUB2_PATTERN.search(meta_match.group('pkgname'))
meta_info['sub2'].append([pkg_info['name'],
''.join([META_PREFIX_ROOT, sub2_match.group('root')]),
- ''.join([META_PREFIX_SUB1, sub2_match.group('root'),'-', sub2_match.group('sub1')])])
+ ''.join([META_PREFIX_SUB1, sub2_match.group('root'),'-', sub2_match.group('sub1')]),
+ pkg_info['summary']])
pkg_info['meta'] = 'sub2'
# check profile pkg
@@ -106,7 +108,6 @@ class RepodataParser(object):
'ver':ver_tag.attrib['ver'],
'rel':ver_tag.attrib['rel']}
pkg_info['checksum'] = pkg.findtext(tag_dic['checksum'])
- pkg_info['summary'] = pkg.findtext(tag_dic['summary'])
pkg_info['description'] = pkg.findtext(tag_dic['description'])
pkg_info['location'] = pkg.find(tag_dic['location']).attrib['href']
size_tag = pkg.find(tag_dic['size'])
@@ -255,7 +256,7 @@ class RepodataParser(object):
tag_dic = self._get_tagname(xml_list[0])
# TODO: temporary code (should be deleted)
- # meta_string='building-blocks-root-chooseonlyone_Kernelarmv7l6f74666eb89e1addc4ce75e25f3e639bbfdd8798fc848a6b7027501070567dcfLinux KernelInclude Linux Kernel in the Platform Imagehttp://tizen.orgApache-2tizenMetaw08building-blocks-0.0.1-1.1.src.rpm'
+ # meta_string='building-blocks-root-metapkgarmv7l6f74666eb89e1addc4ce75e25f3e639bbfdd8798fc848a6b7027501070567dcfSimple DirectMedia LayerThis is the Simple DirectMedia Layer, a generic API that provides low level access to audio, keyboard, mouse, and display framebuffer across multiple platforms.http://www.libsdl.org/Zlib and SGI-B-2.0tizenSystem Environment/Librariesw36SDL2-2.0.4-4.2.src.rpmbuilding-blocks-sub1-metapkg-extsub1armv7l6f74666eb89e1addc4ce75e25f3e639bbfdd8798fc848a6b7027501070567dcfsub1-extensionThis is the Simple DirectMedia Layer, a generic API that provides low level access to audio, keyboard, mouse, and display framebuffer across multiple platforms.http://www.libsdl.org/Zlib and SGI-B-2.0tizenSystem Environment/Librariesw36SDL2-2.0.4-4.2.src.rpmbuilding-blocks-sub2-metapkg-extsub1-exts1sub1armv7l6f74666eb89e1addc4ce75e25f3e639bbfdd8798fc848a6b7027501070567dcfsub2-extensionThis is the Simple DirectMedia Layer, a generic API that provides low level access to audio, keyboard, mouse, and display framebuffer across multiple platforms.http://www.libsdl.org/Zlib and SGI-B-2.0tizenSystem Environment/Librariesw36SDL2-2.0.4-4.2.src.rpmbuilding-blocks-sub2-metapkg-extsub1-exts1sub2armv7l6f74666eb89e1addc4ce75e25f3e639bbfdd8798fc848a6b7027501070567dcfsub2-extensionThis is the Simple DirectMedia Layer, a generic API that provides low level access to audio, keyboard, mouse, and display framebuffer across multiple platforms.http://www.libsdl.org/Zlib and SGI-B-2.0tizenSystem Environment/Librariesw36SDL2-2.0.4-4.2.src.rpmbuilding-blocks-sub1-metapkg-extsub2armv7l6f74666eb89e1addc4ce75e25f3e639bbfdd8798fc848a6b7027501070567dcfsub1-extensionThis is the Simple DirectMedia Layer, a generic API that provides low level access to audio, keyboard, mouse, and display framebuffer across multiple platforms.http://www.libsdl.org/Zlib and SGI-B-2.0tizenSystem Environment/Librariesw36SDL2-2.0.4-4.2.src.rpmbuilding-blocks-sub2-metapkg-extsub2-exts2sub1armv7l6f74666eb89e1addc4ce75e25f3e639bbfdd8798fc848a6b7027501070567dcfsub2-extensionThis is the Simple DirectMedia Layer, a generic API that provides low level access to audio, keyboard, mouse, and display framebuffer across multiple platforms.http://www.libsdl.org/Zlib and SGI-B-2.0tizenSystem Environment/Librariesw36SDL2-2.0.4-4.2.src.rpmbuilding-blocks-sub2-metapkg-extsub2-exts2sub2armv7l6f74666eb89e1addc4ce75e25f3e639bbfdd8798fc848a6b7027501070567dcfsub2-extensionThis is the Simple DirectMedia Layer, a generic API that provides low level access to audio, keyboard, mouse, and display framebuffer across multiple platforms.http://www.libsdl.org/Zlib and SGI-B-2.0tizenSystem Environment/Librariesw36SDL2-2.0.4-4.2.src.rpm'
# xml_list.append(etree.fromstring(meta_string))
filter_data = self._filtering_data_based_arch(xml_list, tag_dic)