You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/lib/commands/do-list.sh
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ do-list() {
11
11
esac
12
12
done
13
13
14
+
local has_invalid_packages='no'
15
+
14
16
if [ "$should_show_outdated"='yes' ];then
15
17
local packages
16
18
readarray -t packages <<(do-list)
@@ -37,7 +39,19 @@ do-list() {
37
39
local repository="${package_path##*/}"
38
40
local package="$user/$repository"
39
41
42
+
# Users that have installed packages before the switch to namespacing by
43
+
# site domain name will print incorrectly. So, we check to make sure the site
44
+
# url is actually is a domain name and not, for example, a GitHub username
45
+
if [[ "$site"!=*.* ]];then
46
+
has_invalid_packages='yes'
47
+
continue
48
+
fi
49
+
40
50
printf"%s\n""$site/$package"
41
51
done
42
52
fi
53
+
54
+
if [ "$has_invalid_packages"='yes' ];then
55
+
log.error "You have invalid packages. To fix this optimally, remove the '${BPM_PACKAGES_PATH%/*}' directory and reinstall all that packages that were deleted in the process"
0 commit comments