'checksum_type': 'md5',
                'checksum': 'axbycz',
                'last_modified': '2003-10-11 12:13:14',
                'file_size': 12345,
            }),
            KickstartFile().populate({
                'relative_path': 'foo/foo4',
                'checksum_type': 'md5',
                'checksum': 'axbycz',
                'last_modified': '2003-10-11 12:13:14',
                'file_size': 123456,
            }),
            KickstartFile().populate({
                'relative_path': 'foo/foo3',
                'checksum_type': 'md5',
                'checksum': 'axbycz',
                'last_modified': '2003-10-11 12:13:14',
                'file_size': 1234567,
            }),
        ],
    }),
]

rhnSQL.initDB()

backend = OracleBackend()
backend.init()

ki = KickstartableTreeImport(ks_trees, backend)
ki.run()
Exemple #2
0
                'checksum_type': 'md5',
                'checksum': 'axbycz',
                'last_modified': '2003-10-11 12:13:14',
                'file_size': 12345,
            }),
            KickstartFile().populate({
                'relative_path': 'foo/foo4',
                'checksum_type': 'md5',
                'checksum': 'axbycz',
                'last_modified': '2003-10-11 12:13:14',
                'file_size': 123456,
            }),
            KickstartFile().populate({
                'relative_path': 'foo/foo3',
                'checksum_type': 'md5',
                'checksum': 'axbycz',
                'last_modified': '2003-10-11 12:13:14',
                'file_size': 1234567,
            }),
        ],
    }),
]

rhnSQL.initDB()

backend = OracleBackend()
backend.init()

ki = KickstartableTreeImport(ks_trees, backend)
ki.run()
 def endContainerCallback(self):
     if not self.batch:
         return
     importer = KickstartableTreeImport(self.batch, getBackend())
     importer.run()