summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xDocumentation/change_slot5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/change_slot b/Documentation/change_slot
index 02514c9030f..9dc4545bed9 100755
--- a/Documentation/change_slot
+++ b/Documentation/change_slot
@@ -47,6 +47,11 @@ run_vdb() {
packages=$(find "${category}" -mindepth 1 -maxdepth 1 -type d)
for package in ${packages[@]}; do
+ # If the package has no repository, warn the user
+ if [[ ! -e "${package}/repository" ]]; then
+ echo "Warning: $(basename ${package}) was installed from a repo without repo_name"
+ continue
+ fi
# If package was installed from the repo
name=$(cat ${package}/repository)
if [[ "${name}" == "${REPO}" ]]; then