* ignore_dependency secenegini implement et

exa@pardus ~/code/pisi $ ./pisi-cli list-installed
exa@pardus ~/code/pisi $ ./pisi-cli -B --ignore-dependency it
zip-2.3-1.pisi
DEBUG: A = ['zip-2.3-1.pisi']
Installing zip, version 2.3, release 1, build None
Extracting files,
Storing files.xml,
metadata.xml.

zip aslinda unzip gerektiriyor. hayirli ugurlu ola caglar.
This commit is contained in:
Eray Özkural
2005-09-30 11:34:02 +00:00
parent b36a74fe1a
commit e4adc19198
3 changed files with 14 additions and 7 deletions
+6
View File
@@ -112,6 +112,12 @@ def install_pkg_files(package_URIs):
ctx.ui.error('Mixing file names and package names not supported YET.\n')
return False
if ctx.config.get_option('ignore_dependency'):
# simple code path then
for x in package_URIs:
operations.install_single_file(x)
return True
# read the package information into memory first
# regardless of which distribution they come from
d_t = {}
+3 -3
View File
@@ -282,9 +282,9 @@ class PackageOp(Command):
p = self.parser
p.add_option("-B", "--ignore-comar", action="store_true",
default=False, help="bypass comar configuration agent")
p.add_option("", "--ignore-dependency",
action="store_true",
default=False, help="death of sanity")
p.add_option("", "--ignore-dependency", action="store_true",
default=False,
help="do not take dependency information into account")
def init(self):
super(PackageOp, self).init(True)
+5 -4
View File
@@ -75,10 +75,11 @@ class Installer:
raise InstallError("Package conflicts " + pkg)
# check dependencies
if not dependency.installable(self.pkginfo.name):
ctx.ui.error('Dependencies for ' + self.pkginfo.name +
' not satisfied')
raise InstallError("Package not installable")
if not ctx.config.get_option('ignore_dependency'):
if not dependency.installable(self.pkginfo.name):
ctx.ui.error('Dependencies for ' + self.pkginfo.name +
' not satisfied')
raise InstallError("Package not installable")
def reinstall(self):
"check reinstall, confirm action, and remove package if reinstall"