~mvo/aptdaemon/0.3-dpkg-i18n

« back to all changes in this revision

Viewing changes to aptdaemon/worker.py

  • Committer: sebi at glatzor
  • Date: 2010-09-28 16:14:39 UTC
  • Revision ID: sebi@glatzor.de-20100928161439-ibdkxl3tvu11x6n7
If the lists are locked by e.g. apt-get update raise an error lock error instead of a "programming error". The locking was reworked in the trunk branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
585
585
                                    str(error.message))
586
586
        except apt.cache.FetchCancelledException:
587
587
            raise TransactionCancelled()
 
588
        except apt.cache.LockFailedException:
 
589
            raise TransactionFailed(ERROR_NO_LOCK)
588
590
 
589
591
    def upgrade_system(self, safe_mode=True):
590
592
        """Upgrade the system.