Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot edit a mirror when its ID is a substring of another #134

Open
Jehan opened this issue Nov 10, 2022 · 2 comments
Open

Cannot edit a mirror when its ID is a substring of another #134

Jehan opened this issue Nov 10, 2022 · 2 comments

Comments

@Jehan
Copy link

Jehan commented Nov 10, 2022

We have a at mirror.fcix.net, back then I used fcix.net as ID.

Now they sponsor more mirrors, for instance in paducahix.mm.fcix.net.
I wanted to edit the first mirror name to mirror.fcix.net, except that I get:

$ mb edit fcix.net
Multiple match:
  uvermont.mm.fcix.net
  ziply.mm.fcix.net
  abqix.mm.fcix.net
  fcix.net
  paducahix.mm.fcix.net
  forksystems.mm.fcix.net
  lesnet.mm.fcix.net

The command usage does not give more info on the format. Hoping it would be some kind of regexp, I even tried "^fcix.net" to no avail. Basically so far, it looks like it's impossible to edit a mirror whose ID is a substring of another. Or if it is, it's well hidden! 🙈

@jbkempf jbkempf added the bug label Nov 7, 2023
@jbkempf
Copy link
Collaborator

jbkempf commented Nov 7, 2023

That's a bug, indeed.

@Jehan
Copy link
Author

Jehan commented Nov 7, 2023

For the record, the "solution" I came up with back then to be able to rename the first mirror was to temporarily rename all the subdomain mirrors (adding a typo on purpose for instance) so that they don't share the common fcix.net base anymore. Then I renamed the first mirror, and finally I fixed the name of all the other mirrors. 😅

A bit painful, but doable. Of course a fix would be welcome eventually. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants