~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/scripts/gina/handlers.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-14 06:39:41 UTC
  • mfrom: (13939.2.3 bug-848954)
  • Revision ID: launchpad@pqm.canonical.com-20110914063941-n1jto6mljkbg9e1c
[r=gmb][bug=848954] Remove Gina's untested,
        unappreciated dry-run mode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
    This class is used to handle the import process.
166
166
    """
167
167
 
168
 
    def __init__(self, ztm, distro_name, distroseries_name, dry_run,
169
 
                 ktdb, archive_root, keyrings, pocket, component_override):
170
 
        self.dry_run = dry_run
 
168
    def __init__(self, ztm, distro_name, distroseries_name, ktdb,
 
169
                 archive_root, keyrings, pocket, component_override):
171
170
        self.pocket = pocket
172
171
        self.component_override = component_override
173
172
        self.ztm = ztm
191
190
 
192
191
    def commit(self):
193
192
        """Commit to the database."""
194
 
        if not self.dry_run:
195
 
            self.ztm.commit()
 
193
        self.ztm.commit()
196
194
 
197
195
    def abort(self):
198
196
        """Rollback changes to the database."""
199
 
        if not self.dry_run:
200
 
            self.ztm.abort()
 
197
        self.ztm.abort()
201
198
 
202
199
    def ensure_archinfo(self, archtag):
203
200
        """Append retrived distroarchseries info to a dict."""