octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Having pkg("list") mark which pakages are loaded


From: David Bateman
Subject: Re: Having pkg("list") mark which pakages are loaded
Date: Mon, 14 May 2007 14:46:58 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

David Bateman wrote:
> The attached patch allows pkg to mark in the packages structure returned
> by pkg("list") whether a package is loaded. It also allows pkg("list")
> called with no output arguments to printed a "*" next to loaded packages...
> 
> Regards
> David
> 

I suppose the change should be documented as well  :-)

D.



*** ./doc/interpreter/package.txi.orig34        2007-05-14 12:54:47.958967126 
+0200
--- ./doc/interpreter/package.txi       2007-05-14 12:55:44.289079894 +0200
***************
*** 49,63 ****
  @example
  @group
  pkg list
!      @print{} Package Name | Version | Installation directory
!      @print{} -------------+---------+-----------------------
!      @print{}        image |   1.0.0 | /home/jwe/octave/image-1.0.0
  @end group
  @end example
  
  @noindent
  In this case only version 1.0.0 of the @code{image} package is
! installed.
  
  It is possible to remove a package from the system using the
  @code{pkg uninstall} command like this
--- 49,64 ----
  @example
  @group
  pkg list
!      @print{} Package Name  | Version | Installation directory
!      @print{} --------------+---------+-----------------------
!      @print{}        image *|   1.0.0 | /home/jwe/octave/image-1.0.0
  @end group
  @end example
  
  @noindent
  In this case only version 1.0.0 of the @code{image} package is
! installed. The '*' character next to the package name shows that the
! image package is loaded and ready for use.
  
  It is possible to remove a package from the system using the
  @code{pkg uninstall} command like this

reply via email to

[Prev in Thread] Current Thread [Next in Thread]