Ejemplo n.º 1
0
 def _commit_deletes(self, cstate):
     cinfo = cstate.info
     for package in cinfo.deleted:
         if cstate.state == CommitStateMixin.STATE_TRANSFER:
             RemotePackage.delete(self.name, package, apiurl=self.apiurl)
             cstate.state = CommitStateMixin.STATE_COMMITTING
         self._remove_wc_dir(package, notify=True)
         cstate.processed(package, None)
         self.notifier.processed(package, None, 'D')
Ejemplo n.º 2
0
 def _commit_deletes(self, cstate):
     cinfo = cstate.info
     for package in cinfo.deleted:
         if cstate.state == CommitStateMixin.STATE_TRANSFER:
             RemotePackage.delete(self.name, package, apiurl=self.apiurl)
             cstate.state = CommitStateMixin.STATE_COMMITTING
         self._remove_wc_dir(package, notify=True)
         cstate.processed(package, None)
         self.notifier.processed(package, None, 'D')
Ejemplo n.º 3
0
 def test_package12(self):
     """test delete method"""
     self.assertFalse(RemotePackage.delete('foo', 'bar'))
Ejemplo n.º 4
0
 def test_package12(self):
     """test delete method"""
     self.assertFalse(RemotePackage.delete('foo', 'bar'))