mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
pluginupdate.py: fix regression with plugin line splitting
Before46c68ad
both "@" and " as " could be used in the same line like the following: vimwiki/vimwiki@dev as vimwiki-dev After46c68ad
this gives an error due to the split URI still erroneously including the " as [name]" at the end, due to splitting from the wrong variable.
This commit is contained in:
parent
a247ac2252
commit
b6718ec0aa
1 changed files with 3 additions and 3 deletions
|
@ -470,10 +470,10 @@ def parse_plugin_line(line: str) -> PluginDesc:
|
|||
alias = None
|
||||
uri = line
|
||||
if " as " in uri:
|
||||
uri, alias = line.split(" as ")
|
||||
uri, alias = uri.split(" as ")
|
||||
alias = alias.strip()
|
||||
if "@" in line:
|
||||
uri, branch = line.split("@")
|
||||
if "@" in uri:
|
||||
uri, branch = uri.split("@")
|
||||
|
||||
repo = make_repo(uri.strip(), branch.strip(), alias)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue