From 27ff900fc31a5a06bac3ce1e5b1a1b6506afea97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Wed, 2 Dec 2020 13:53:52 +0100 Subject: [PATCH] Fix package position links (#242) --- VERSION | 2 +- import-scripts/import_scripts/channel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 60d3b2f..b6a7d89 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -15 +16 diff --git a/import-scripts/import_scripts/channel.py b/import-scripts/import_scripts/channel.py index d059f9e..536cae9 100644 --- a/import-scripts/import_scripts/channel.py +++ b/import-scripts/import_scripts/channel.py @@ -462,7 +462,7 @@ def get_packages(evaluation, evaluation_builds): position = data["meta"].get("position") if position and position.startswith("/nix/store"): - position = position[44:] + position = position.split("/", 4)[-1] package_attr_name_query = list(parse_query(attr_name)) package_pname = remove_attr_set(data["pname"])