diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2012-10-02 11:31:42 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2012-10-02 11:31:42 (GMT) |
commit | ef69b25a9ba9c34abe0493026162790bbb5ea424 (patch) | |
tree | b875d603ff42a1d1d77007cb86a9cc564150616e /misc | |
parent | 4fdceee90d15ad7786e7403fddc4639222773cc7 (diff) |
Fix minor issues in package resolving code
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/aslo-sync | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/misc/aslo-sync b/misc/aslo-sync index 0166061..c69374b 100755 --- a/misc/aslo-sync +++ b/misc/aslo-sync @@ -42,6 +42,7 @@ ACTIVITIES_PATH = '/upload/activities' EXCLUDE_BUNDLE_IDS = ['net.gcompris'] SUGAR_GUID = 'sugar' SN_GUID = 'sugar-network' +PACKAGES_GUID = 'packages' CATEGIORIES_TO_TAGS = { 'Search & Discovery': 'discovery', @@ -119,6 +120,18 @@ class Application(application.Application): ctime=time.time(), mtime=time.time(), ) + if not self.volume['context'].exists(PACKAGES_GUID): + self.volume['context'].create( + guid=PACKAGES_GUID, + implement=PACKAGES_GUID, + type='project', + title='Packages', + summary='Collection of GNU/Linux packages metadata', + description='Collection of GNU/Linux packages metadata', + ctime=time.time(), mtime=time.time()) + self.volume['context'].set_blob(PACKAGES_GUID, 'icon', + url='/static/images/package.png') + if self.args: for addon_id in self.args: self.sync_activities(addon_id) |