bugGNU Octave - Bugs: bug #36453, pkg uninstall -global 'something...

 
 

bug #36453: pkg uninstall -global 'something uninstalled' clears the cached package database

Submitted by:  Muhali <muhali>
Submitted on:  Fri 11 May 2012 06:36:26 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 13 Mar 2015 02:42:02 AM UTC, comment #3:

This was reported again as bug #44524 and fixed in changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/6670df97456c

Mike Miller <mtmiller>
Project Administrator
Tue 12 Jun 2012 01:35:11 PM UTC, comment #2:

This is also happening on Windows, but it does not require the -global flag, as package (un)install is global by default under native Windows.

Michael Goffioul <goffioul>
Project Member
Sun 13 May 2012 02:15:24 PM UTC, comment #1:

Actually the packages are not uninstalled, the global_list file is just deleted. As a workaround, running

should give you back your list of installed packages.

In testing this I have discovered some other odd related behaviors. Does anyone know why a global uninstall iterates first through the union of local and global packages, then local packages only?

http://hg.savannah.gnu.org/hgweb/octave/file/9e4ad3f1f291/scripts/pkg/private/uninstall.m#l47

Mike Miller <mtmiller>
Project Administrator
Fri 11 May 2012 06:36:26 PM UTC, original submission:

Suppose package 'foo' is not installed. Then doing

leads to a loss of all globally installed packages.

Muhali <muhali>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by goffioul (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by muhali (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 13 Mar 2015 02:42:02 AM UTCmtmillerStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sun 09 Mar 2014 06:42:25 PM UTCmtmillerDependencies-=>bugs #41812 is dependent
    Mon 28 Oct 2013 03:19:10 AM UTCmtmillerCategoryNone=>Octave Function
      Item GroupNone=>Incorrect Result
      Operating SystemGNU/Linux=>Any
    Tue 12 Jun 2012 01:04:49 PM UTCmtmillerSummarypkg uninstall -global \'something uninstalled\' uninstalls everything (global)=>pkg uninstall -global 'something uninstalled' clears the cached package database
    Sun 13 May 2012 02:15:24 PM UTCmtmillerStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1