* upgrade'in helpini duzelt biraz, elden geldigince yani
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE Project SYSTEM "Project-3.8.dtd">
|
<!DOCTYPE Project SYSTEM "Project-3.8.dtd">
|
||||||
<!-- Project file for project pisi -->
|
<!-- 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, -->
|
<!-- Copyright (C) 2005 PiSi Development Team, -->
|
||||||
<Project version="3.8">
|
<Project version="3.8">
|
||||||
<ProgLanguage mixed="0">Python</ProgLanguage>
|
<ProgLanguage mixed="0">Python</ProgLanguage>
|
||||||
@@ -305,6 +305,32 @@
|
|||||||
<Source>
|
<Source>
|
||||||
<Name>TODO</Name>
|
<Name>TODO</Name>
|
||||||
</Source>
|
</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>
|
</Sources>
|
||||||
<Forms>
|
<Forms>
|
||||||
</Forms>
|
</Forms>
|
||||||
@@ -342,10 +368,10 @@
|
|||||||
<VcsOtherData>{'standardLayout': 1}</VcsOtherData>
|
<VcsOtherData>{'standardLayout': 1}</VcsOtherData>
|
||||||
</Vcs>
|
</Vcs>
|
||||||
<FiletypeAssociations>
|
<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="*.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>
|
</FiletypeAssociations>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
+3
-1
@@ -84,7 +84,7 @@ def install(packages):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# determine if this is a list of files/urls or names
|
# 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)
|
return install_pkg_files(packages)
|
||||||
else:
|
else:
|
||||||
return install_pkg_names(packages)
|
return install_pkg_names(packages)
|
||||||
@@ -289,6 +289,8 @@ def upgrade_pkg_names(A):
|
|||||||
# filter packages that are not upgradable
|
# filter packages that are not upgradable
|
||||||
Ap = []
|
Ap = []
|
||||||
for x in A:
|
for x in A:
|
||||||
|
if x.endswith('.pisi'):
|
||||||
|
ctx.ui.debug("Warning: package *name* ends with '.pisi'")
|
||||||
if not ctx.installdb.is_installed(x):
|
if not ctx.installdb.is_installed(x):
|
||||||
ctx.ui.info('Package %s is not installed.' % x)
|
ctx.ui.info('Package %s is not installed.' % x)
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -137,6 +137,7 @@ class Command(object):
|
|||||||
"""print help for the command"""
|
"""print help for the command"""
|
||||||
ctx.ui.info(self.format_name() + ': ')
|
ctx.ui.info(self.format_name() + ': ')
|
||||||
print getattr(self, "__doc__")
|
print getattr(self, "__doc__")
|
||||||
|
print
|
||||||
print self.parser.format_option_help()
|
print self.parser.format_option_help()
|
||||||
|
|
||||||
def die(self):
|
def die(self):
|
||||||
@@ -340,9 +341,12 @@ class Upgrade(PackageOp):
|
|||||||
|
|
||||||
Usage: Upgrade <package1> <package2> ... <packagen>
|
Usage: Upgrade <package1> <package2> ... <packagen>
|
||||||
|
|
||||||
You may use filenames, URIs or package names for packages. If you have
|
You may use only package names to specify packages because
|
||||||
specified a package name, it should exist in a specified repository.
|
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
|
__metaclass__ = autocommand
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user