/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to transportgit.py

  • Committer: Jelmer Vernooij
  • Date: 2010-02-12 13:31:58 UTC
  • mto: (0.200.718 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20100212133158-3nazi7x9y8c13mg1
Cope with empty lines in packs info file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        self.pack_transport = self.transport.clone(PACKDIR)
102
102
 
103
103
    def _load_packs(self):
104
 
        suffix_len = len(".pack")
105
104
        ret = []
106
105
        for line in self.transport.get('info/packs').readlines():
107
 
            (kind, name) = line.rstrip("\n").split(" ", 1)
 
106
            line = line.rstrip("\n")
 
107
            if not line:
 
108
                continue
 
109
            (kind, name) = line.split(" ", 1)
108
110
            if kind != "P":
109
111
                continue
110
112
            if name.startswith("pack-") and name.endswith(".pack"):