~ubuntu-langpack/langpack-o-matic/main

« back to all changes in this revision

Viewing changes to import

  • Committer: Arne Goetje
  • Date: 2009-07-06 03:29:55 UTC
  • Revision ID: arne@canonical.com-20090706032955-256u755hd24tlpav
* added split for zh into zh-hans and zh-hant. zh-hans contains zh_CN and ZH_SG, while zh-hant contains zh_HK and zh_TW. This is only done for releases >= 9.10
* disable creation of language-support-translation-* and language-support-extra-* for releases >= 9.10
* add ISO-15924 (script codes) mapping for future variant based package splits
* bugfix: language-support-extra* should not be in SUPDEPS, but in SUGDEPS

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
            makepkg.make_pkg('skel-input', support_im_pkg, macr)
148
148
        if macr['WADEPS']:
149
149
            makepkg.make_pkg('skel-writing', support_wa_pkg, macr)
150
 
        if macr['TRDEPS']:
151
 
            makepkg.make_pkg('skel-translations', support_tr_pkg, macr)
152
 
        if macr['EXDEPS']:
153
 
            makepkg.make_pkg('skel-extra', support_ex_pkg, macr)
 
150
        if macr['RELEASEVERSION'] < 9.10:
 
151
            if macr['TRDEPS']:
 
152
                makepkg.make_pkg('skel-translations', support_tr_pkg, macr)
 
153
            if macr['EXDEPS']:
 
154
                makepkg.make_pkg('skel-extra', support_ex_pkg, macr)
154
155
 
155
156
    # if base package does not exist, create it
156
157
    if not os.path.isdir(base_pkg):
157
158
        # determine name of tarball with extra files
158
 
        extra_tar = 'extra-files/%s-%s.tar' % (cls, macr['LCODE'])
 
159
        extra_tar = 'extra-files/%s-%s.tar' % (cls, macr['PKGNAME'])
159
160
        if not os.path.isfile(extra_tar):
160
161
            extra_tar = extra_tar + '.gz'
161
162
            if not os.path.isfile(extra_tar):
165
166
        locale_tar = None
166
167
        if cls == '' and not release.startswith('breezy'):
167
168
            print 'Creating locale tarball'
168
 
            locale_tar = locinfo.create_locale_tar(macr['LCODE'])
 
169
            locale_tar = locinfo.create_locale_tar(macr['PKGNAME'])
169
170
            if extra_tar != None:
170
171
                raise Exception, 'Not yet implemented: tarball merging (locale+extra.tar)'
171
172
            else: