~larstiq/bzr-builddeb/builddeb.lq

« back to all changes in this revision

Viewing changes to changes.py

  • Committer: James Westby
  • Date: 2007-01-16 22:14:35 UTC
  • mfrom: (69.1.9 builddeb.0.14.cleanup)
  • Revision ID: jw+debian@jameswestby.net-20070116221435-06oywmmqy298wv19
  * Some cleanups.
    * Switch to properties in config objects.
    * Use bzr's logging. I can add verbose a proper way later if I need it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
import deb822
25
25
 
26
 
from bdlogging import debug
 
26
from bzrlib.trace import mutter
 
27
 
27
28
from errors import DebianError
28
29
 
29
30
class DebianChanges(deb822.Changes):
54
55
    changes = str(package)+"_"+str(version)+"_"+str(arch)+".changes"
55
56
    if dir is not None:
56
57
      changes = os.path.join(dir,changes)
57
 
    debug("Looking for %s", changes)    
 
58
    mutter("Looking for %s", changes)    
58
59
    if not os.path.exists(changes):
59
60
      raise DebianError("Could not find "+package)
60
61
    fp = open(changes)