Skip to content

Commit 4d3561d

Browse files
committed
Omit source metadata from offline index
1 parent e6e5d83 commit 4d3561d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/manage/install_command.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,10 +851,12 @@ def execute(cmd):
851851
if cmd.download:
852852
LOGGER.info("Downloading %s", install["display-name"])
853853
package = _download_one(cmd, source, install, cmd.download, must_copy=True)
854-
download_index["versions"].append({
854+
install_idx = {
855855
**install,
856856
"url": package.name,
857-
})
857+
}
858+
install_idx.pop("source", None)
859+
download_index["versions"].append(install_idx)
858860
else:
859861
_install_one(cmd, source, install)
860862
except ArgumentError:

0 commit comments

Comments
 (0)