예제 #1
0
 def test_install(self, app):
     conflict_packages = []
     for pkgname in app.conflicted_system_packages:
         if packages_are_installed([pkgname], strict=True):
             conflict_packages.append(pkgname)
     if conflict_packages:
         return conflict_packages
예제 #2
0
	def install(self):
		packages = self._get_software_packages()
		if packages:
			if packages_are_installed(packages, strict=False):
				mark_packages_as_manually_installed(packages)
			else:
				database_logger.info('Installing/upgrading %s' % ', '.join(packages))
				update_packages()
				if not install_packages(packages):
					raise DatabaseCreationFailed('Could not install software packages')