equal
deleted
inserted
replaced
162 """synchronize content known by this repository with content in the |
162 """synchronize content known by this repository with content in the |
163 external repository |
163 external repository |
164 """ |
164 """ |
165 self.info('synchronizing pyro source %s', self.uri) |
165 self.info('synchronizing pyro source %s', self.uri) |
166 cnx = self.get_connection() |
166 cnx = self.get_connection() |
167 extrepo = cnx._repo |
167 try: |
|
168 extrepo = cnx._repo |
|
169 except AttributeError: |
|
170 # fake connection wrapper returned when we can't connect to the |
|
171 # external source (hence we've no chance to synchronize...) |
|
172 return |
168 etypes = self.support_entities.keys() |
173 etypes = self.support_entities.keys() |
169 if mtime is None: |
174 if mtime is None: |
170 mtime = self.last_update_time() |
175 mtime = self.last_update_time() |
171 updatetime, modified, deleted = extrepo.entities_modified_since(etypes, |
176 updatetime, modified, deleted = extrepo.entities_modified_since(etypes, |
172 mtime) |
177 mtime) |