File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ do-list() {
36
36
for package_path in " $BPM_PACKAGES_PATH " /* /* /* ; do
37
37
util.extract_data_from_package_dir " $package_path "
38
38
local site=" $REPLY1 "
39
- local package=" $REPLY2 /$REPLY3 "
39
+ local user=" $REPLY2 "
40
+ local repository=" $REPLY3 "
41
+ local package=" $user /$repository "
40
42
41
43
# Users that have installed packages before the switch to namespacing by
42
44
# site domain name will print incorrectly. So, we check to make sure the site
@@ -46,7 +48,11 @@ do-list() {
46
48
continue
47
49
fi
48
50
49
- printf " %s\n" " $site /$package "
51
+ if [ " $site " = ' local' ]; then
52
+ printf " %s\n" " $site /$user "
53
+ else
54
+ printf " %s\n" " $site /$package "
55
+ fi
50
56
done
51
57
fi
52
58
Original file line number Diff line number Diff line change @@ -28,6 +28,24 @@ load 'util/init.sh'
28
28
assert_output " "
29
29
}
30
30
31
+ @test " properly list for local packages" {
32
+ local site=' github.com'
33
+ local pkg=' somepath/project2'
34
+
35
+ test_util.mock_command do-plumbing-add-deps
36
+ test_util.mock_command do-plumbing-link-bins
37
+ test_util.mock_command do-plumbing-link-completions
38
+ test_util.mock_command do-plumbing-link-man
39
+
40
+ test_util.create_package " $pkg "
41
+ do-link " $BPM_ORIGIN_DIR /$site /$pkg "
42
+
43
+ run do-list
44
+
45
+ assert_success
46
+ assert_output " local/project2"
47
+ }
48
+
31
49
@test " properly list outdated packages" {
32
50
local site=" github.com"
33
51
local pkg1=' username/outdated'
You can’t perform that action at this time.
0 commit comments