コード例 #1
0
ファイル: test_ks_tree.py プロジェクト: pombredanne/spacewalk
                '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()
コード例 #2
0
ファイル: test_ks_tree.py プロジェクト: flavio/spacewalk
                '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()
コード例 #3
0
 def endContainerCallback(self):
     if not self.batch:
         return
     importer = KickstartableTreeImport(self.batch, getBackend())
     importer.run()