~ubuntu-branches/ubuntu/lucid/exaile/lucid

« back to all changes in this revision

Viewing changes to xl/version.py

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2010-04-12 20:46:51 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100412204651-3dk9ogh1rtp9sc1k
Tags: 0.3.1.1-0ubuntu1
* New upstream bugfix release.

* debian/exaile.1, debian/exaile.manpages: Include and
  install manpage for exaile based on help2man output
  but including additions and tweaks.
* debian/source/format: Add a file conataining "1.0"
  to make lintian happy. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
import xdg
28
28
 
29
29
major = "0.3.1"
30
 
minor = "0"
 
30
minor = "1"
31
31
extra = ""
32
32
 
33
33
def get_latest_bzr_revno(directory):
38
38
    """
39
39
    try:
40
40
        import bzrlib.workingtree
 
41
        import bzrlib.errors as errors
 
42
    except ImportError:
 
43
        return None
 
44
 
 
45
    try:
41
46
        wt = bzrlib.workingtree.WorkingTree.open_containing(directory)[0]
42
47
        wt.lock_read()
43
 
    except (errors.NoWorkingTree, errors.NotLocalUrl, ImportError):
 
48
    except (errors.NoWorkingTree, errors.NotLocalUrl, errors.NotBranchError):
44
49
        return None
45
50
 
46
51
    revid = wt.last_revision()