~brz/brz-debian/byoci

« back to all changes in this revision

Viewing changes to changes.py

  • Committer: James Westby
  • Date: 2007-05-03 18:42:47 UTC
  • mfrom: (95.1.14 bzr-builddeb.0.15.tests)
  • Revision ID: jw+debian@jameswestby.net-20070503184247-3si8cp52q0soyy0f
* Lock the working trees to fix compatibility with 0.15+ dirstate trees.
  (Closes: #421900)
* Add the start of a test suite to help avoid bugs like that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#    changes.py -- Abstraction of .changes files
2
 
#    Copyright (C) 2006 James Westby <jw+debian@jameswestby.net>
 
2
#    Copyright (C) 2006, 2007 James Westby <jw+debian@jameswestby.net>
3
3
#    
4
4
#    This file is part of bzr-builddeb.
5
5
#
55
55
    changes = str(package)+"_"+str(version)+"_"+str(arch)+".changes"
56
56
    if dir is not None:
57
57
      changes = os.path.join(dir,changes)
58
 
    mutter("Looking for %s", changes)    
 
58
    mutter("Looking for %s", changes)
59
59
    if not os.path.exists(changes):
60
 
      raise DebianError("Could not find "+package)
 
60
      raise DebianError("Could not find .changes file: %s" % changes)
61
61
    fp = open(changes)
62
62
    super(DebianChanges, self).__init__(fp)
63
63
    self._filename = changes