[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls |
Date: |
Thu, 29 Apr 2021 00:58:14 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 |
Follow-up Comment #3, bug #60472 (project octave):
stepping through uninstall.m to where it crashes, it gets to the line 107
block to delete the directories.
the results of 'desc = installed-pkgs_lst(i)' for the single ga package is:
debug> desc
desc =
scalar structure containing the fields:
name = ga
version = 0.10.2
date = 2020-12-02
author = Luca Favatella <slackydeb@gmail.com>
maintainer = Octave-Forge community <maintainers@octave.org>
title = Genetic Algorithm
description = Genetic optimization code
categories = Optimization
depends =
{
[1,1] =
scalar structure containing the fields:
package = octave
operator = >=
version = 3.4.0
}
autoload = yes
license = GPL version 3 or later
url = http://octave.sf.net
dir =
C:\Programs\Octave\octave-dev\mingw64\share\octave\packages\ga-0.10.2
archprefix =
loaded = 0
it steps through the line 125 rmdir(desc.dir, "s") without problem. same with
the line 129 rmdir(getarchdir(desc),"s"). for reference:
debug> getarchdir(desc)
ans = x86_64-w64-mingw32-api-v55
then it gets to
if (dirempty (desc.archprefix))
rmdir (desc.archprefix, "s");
endif
the if statement is true, so it runs the rmdir line, and rmdir apparently
crashes to desktop when passed an empty string.
so... is this related to the prefix thing? should rmdir not be crashing when
passed an empty string? is it an odd combination of the two?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60472>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Nicholas Jankowski, 2021/04/28
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Nicholas Jankowski, 2021/04/28
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Nicholas Jankowski, 2021/04/29
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Nicholas Jankowski, 2021/04/29
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Philip Nienhuis, 2021/04/29
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Nicholas Jankowski, 2021/04/29
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Nicholas Jankowski, 2021/04/29
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Nicholas Jankowski, 2021/04/29
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Kai Torben Ohlhus, 2021/04/30
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Nicholas Jankowski, 2021/04/30
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Markus Mützel, 2021/04/30
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Nicholas Jankowski, 2021/04/30
- [Octave-bug-tracker] [bug #60472] pkg -global option changes pkg prefix for subsequent calls, Nicholas Jankowski, 2021/04/30