* upgrade'in helpini duzelt biraz, elden geldigince yani

This commit is contained in:
Eray Özkural
2005-09-29 12:34:25 +00:00
parent c97c4a7352
commit e3b9aeca99
3 changed files with 41 additions and 9 deletions
+31 -5
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Project SYSTEM "Project-3.8.dtd">
<!-- Project file for project pisi -->
<!-- Saved: 2005-09-20, 22:00:02 -->
<!-- Saved: 2005-09-29, 16:03:33 -->
<!-- Copyright (C) 2005 PiSi Development Team, -->
<Project version="3.8">
<ProgLanguage mixed="0">Python</ProgLanguage>
@@ -305,6 +305,32 @@
<Source>
<Name>TODO</Name>
</Source>
<Source>
<Dir>tools</Dir>
<Name>fetchAll.py</Name>
</Source>
<Source>
<Dir>pisi</Dir>
<Dir>actionsapi</Dir>
<Name>pythonmodules.py</Name>
</Source>
<Source>
<Dir>pisi</Dir>
<Dir>actionsapi</Dir>
<Name>scons.py</Name>
</Source>
<Source>
<Dir>pisi</Dir>
<Dir>cli</Dir>
<Name>colors.py</Name>
</Source>
<Source>
<Dir>pisi</Dir>
<Name>data.py</Name>
</Source>
<Source>
<Name>pisi-cli</Name>
</Source>
</Sources>
<Forms>
</Forms>
@@ -342,10 +368,10 @@
<VcsOtherData>{'standardLayout': 1}</VcsOtherData>
</Vcs>
<FiletypeAssociations>
<FiletypeAssociation pattern="*.ui.h" type="FORMS" />
<FiletypeAssociation pattern="*.ui" type="FORMS" />
<FiletypeAssociation pattern="*.idl" type="INTERFACES" />
<FiletypeAssociation pattern="*.ptl" type="SOURCES" />
<FiletypeAssociation pattern="*.py" type="SOURCES" />
<FiletypeAssociation pattern="*.ui.h" type="FORMS" />
<FiletypeAssociation pattern="*.idl" type="INTERFACES" />
<FiletypeAssociation pattern="*.ui" type="FORMS" />
<FiletypeAssociation pattern="*.ptl" type="SOURCES" />
</FiletypeAssociations>
</Project>
+3 -1
View File
@@ -84,7 +84,7 @@ def install(packages):
try:
# determine if this is a list of files/urls or names
if packages[0].endswith(ctx.const.package_prefix): # they all have to!
if packages[0].endswith('.pisi'): # they all have to!
return install_pkg_files(packages)
else:
return install_pkg_names(packages)
@@ -289,6 +289,8 @@ def upgrade_pkg_names(A):
# filter packages that are not upgradable
Ap = []
for x in A:
if x.endswith('.pisi'):
ctx.ui.debug("Warning: package *name* ends with '.pisi'")
if not ctx.installdb.is_installed(x):
ctx.ui.info('Package %s is not installed.' % x)
continue
+7 -3
View File
@@ -137,6 +137,7 @@ class Command(object):
"""print help for the command"""
ctx.ui.info(self.format_name() + ': ')
print getattr(self, "__doc__")
print
print self.parser.format_option_help()
def die(self):
@@ -340,9 +341,12 @@ class Upgrade(PackageOp):
Usage: Upgrade <package1> <package2> ... <packagen>
You may use filenames, URIs or package names for packages. If you have
specified a package name, it should exist in a specified repository.
"""
You may use only package names to specify packages because
the package upgrade operation is defined only with respect
to repositories. If you have specified a package name, it
should exist in the package repositories. If you just want to
reinstall a package from a pisi file, use the install command."""
__metaclass__ = autocommand
def __init__(self):