~free.ekanayaka/landscape-client/jaunty-updates-1.4.4-0ubuntu0.9.04

« back to all changes in this revision

Viewing changes to landscape/package/store.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-18 20:42:05 UTC
  • Revision ID: james.westby@ubuntu.com-20090318204205-v17ejhu5urdsrm7j
Tags: 1.0.28-0ubuntu1
New upstream release. (LP: #343954)

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        return None
69
69
 
70
70
    @with_cursor
 
71
    def clear_hash_ids(self, cursor):
 
72
        cursor.execute("DELETE FROM hash")
 
73
 
 
74
    @with_cursor
71
75
    def add_available(self, cursor, ids):
72
76
        for id in ids:
73
77
            cursor.execute("REPLACE INTO available VALUES (?)", (id,))