コード例 #1
0
ファイル: test_clone.py プロジェクト: murraybd/apt-clone
 def test_restore_state_simulate_with_new_release(self):
     #apt_pkg.config.set("Debug::PkgProblemResolver", "1")
     apt_pkg.config.set("Dir::state::status",
                        "./data/dpkg-status/dpkg-status-ubuntu-maverick")
     clone = AptClone()
     missing = clone.simulate_restore_state(
         "./data/apt-state-ubuntu-lucid.tar.gz", "maverick")
コード例 #2
0
ファイル: test_clone.py プロジェクト: cyphermox/apt-clone
    def test_restore_state_simulate(self):
        clone = AptClone()
        supported = distro_info.UbuntuDistroInfo().supported()

        missing = clone.simulate_restore_state("./data/apt-state.tar.gz", new_distro=supported[-1], exclude_pkgs=[])
        # missing, because clone does not have universe enabled
        self.assertEqual(list(missing), ['accerciser'])
コード例 #3
0
ファイル: test_clone.py プロジェクト: cyphermox/apt-clone
 def test_restore_state_simulate_with_new_release(self):
     #apt_pkg.config.set("Debug::PkgProblemResolver", "1")
     apt_pkg.config.set(
         "Dir::state::status",
         "./data/dpkg-status/dpkg-status-ubuntu-maverick")
     clone = AptClone()
     missing = clone.simulate_restore_state(
         "./data/apt-state-ubuntu-lucid.tar.gz", "maverick")
コード例 #4
0
ファイル: test_clone.py プロジェクト: murraybd/apt-clone
    def test_restore_state_simulate(self):
        clone = AptClone()
        supported = distro_info.UbuntuDistroInfo().supported()

        missing = clone.simulate_restore_state("./data/apt-state.tar.gz",
                                               new_distro=supported[-1],
                                               exclude_pkgs=[])
        # missing, because clone does not have universe enabled
        self.assertEqual(list(missing), ['accerciser'])