Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Packages in GAP_PKGS_TO_CLONE aren't properly deleted before cloning: #17

Open
wilfwilson opened this issue Dec 15, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@wilfwilson
Copy link
Member

Let pkg be the variable containing an entry of the list GAP_PKGS_TO_CLONE.

Currently the script tries to delete existing versions of $pkg before trying to clone it, with this line:

rm -rf "$pkg"*

This works reasonably well if $pkg is simply the package name in lower case, e.g. digraphs or float.

It does not necessarily work so well if there is some capitalisation, such as Digraphs.

More importantly, if the format of $pkg is more complicated, i.e. digraphs/digraphs or https://github.com/digraphs/Digraphs then none of the existing versions get deleted.

This wastes time and may lead to the wrong version of the package being loaded.

@wilfwilson wilfwilson added the bug Something isn't working label Dec 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant