Hello,
Some days back I had filed this bug report
http://defect.opensolaris.org/bz/show_bug.cgi?id=840
I am exploring a fix and browsing through the source, have come up
with the following (yet unimplemented) strategy:
After the call to img.list_install(pkg_list, progresstracker, filters = filters,
verbose = verbose, noexecute = noexecute) in
http://src.opensolaris.org/source/xref/pkg/gate/src/client.py#install
the method list_install(self, pkg_list, progress, filters = [],
verbose = False,
noexecute = False): is called in
http://src.opensolaris.org/source/xref/pkg/gate/src/modules/client/image.py
where after some checks the method ip.propose_fmri(matches[0]) is
called in
http://src.opensolaris.org/source/xref/pkg/gate/src/modules/client/imageplan.py
which calls has_version_installed(fmri) in
http://src.opensolaris.org/source/xref/pkg/gate/src/modules/client/image.py
The method ip.propose_fmri(matches[0]) then returns to list_install
in http://src.opensolaris.org/source/xref/pkg/gate/src/modules/client/image.py
, incase a fmri match in found and continues with the next package
(assuming more than one package has been supplied as arguments)
Am I correct so far?
If I am, then a possible solution would be to return a value from
ip.propose_fmri(matches[0]) to indicate that the package is already
installed and hence appropriate message(along with the package
name,version,etc) can be displayed in the client.py file.
Suggestions, corrections awaited.
Thanks,
Amit
--
Amit Kumar Saha
*NetBeans Community
Docs Coordinator*
http://amitsaha.in.googlepages.com
http://amitksaha.blogspot.com
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss