Exemplo n.º 1
0
 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")
Exemplo n.º 2
0
    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'])
Exemplo n.º 3
0
 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")
Exemplo n.º 4
0
    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'])