~ubuntu-branches/ubuntu/karmic/calibre/karmic-updates

« back to all changes in this revision

Viewing changes to upload.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-06-06 17:18:02 UTC
  • mfrom: (1.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090606171802-fcu5dzgkxygn79y6
Tags: 0.5.14+dfsg-1
* New upstream release.
* debian/rules, get-orig-source: Do not unpack newly generated orig tarball
  if we don't have unpackaged upstream sources in the tree (such as when
  building with bzr-buildpackage).

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
            tempdir = tempfile.mkdtemp()
100
100
            pygettext(buf, ['-k', '__', '-p', tempdir]+files)
101
101
            src = buf.getvalue()
102
 
            pot = os.path.join(tempdir, __appname__+'.pot')
 
102
            pot = os.path.join(self.PATH, __appname__+'.pot')
103
103
            f = open(pot, 'wb')
104
104
            f.write(src)
105
105
            f.close()
106
 
            print 'Translations template:', pot
 
106
            print 'Translations template:', os.path.abspath(pot)
107
107
            return pot
108
108
        finally:
109
109
            sys.path.remove(os.path.abspath(self.PATH))
707
707
    description = 'Build and upload calibre to the servers'
708
708
 
709
709
    sub_commands = [
 
710
            ('pot', None),
710
711
            ('stage1', None),
711
712
            ('stage2', None),
712
713
            ('stage3', None)