~ubuntu-branches/ubuntu/karmic/sonata/karmic

« back to all changes in this revision

Viewing changes to sonata/svnversion.py

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2009-09-25 14:00:02 UTC
  • mfrom: (4.2.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090925140002-579l5kikl1ik48p6
Tags: 1.6.2.1-1
* New upstream version.
  - Fixes lyricswiki support (Closes: #542366).
  - No need for ZSI as Sonata now does html scraping.
* Do not depend unconditionally on elementtree, newer python is enough 
  (LP: #377706).
* Bump standards to 3.8.3.
* Simplify debian/rules by using new dh support for distutils.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
        dirname = os.path.dirname(os.path.dirname(sonata.__file__))
12
12
 
13
13
        if not os.path.exists(os.path.join(dirname, '.svn')):
14
 
                return "exported"
 
14
                return "1.6.2.1"
15
15
 
16
16
        try:
17
17
                output = subprocess.Popen(["svnversion", dirname], 
37
37
 
38
38
        return None
39
39
 
40
 
if "/tags/" in consts.HEAD_URL:
41
 
        VERSION = consts.HEAD_URL.split("/tags/")[1].split("/")[0]
42
 
else:
43
 
        revision = find_svnrev()
44
 
        VERSION = "svn%s" % (revision if revision else "????")
 
40
VERSION = "1.6.2.1"