Skip to content

Commit 354ce5c

Browse files
committed
'pkgman' output improved
1 parent 3e2c271 commit 354ce5c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/upm/tools/pkgman.rb

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
os "Haiku"
44

5-
def hpkg_dir
6-
Pathname.new("/system/packages")
7-
end
8-
95
def installed_packages
106
Pathname.new("/packages").each_child.map { |dir| dir.basename.to_s }
117
end
128

9+
def hpkg_dir
10+
Pathname.new("/system/packages")
11+
end
12+
1313
def hpkg_file(name)
1414
r = hpkg_dir.glob("#{name}-*.hpkg").sort
15-
p r
15+
# p r
1616
r.last
1717
end
1818

@@ -30,11 +30,11 @@ def hpkg_file(name)
3030
end
3131

3232
command "info" do |args|
33-
args.each { |arg| run("package", "info", hpkg_file(arg).to_s, paged: true) }
33+
args.each { |arg| run("package", "list", "-i", hpkg_file(arg).to_s, paged: true) }
3434
end
3535

3636
command "files" do |args|
37-
args.each { |arg| run("package", "list", hpkg_file(arg).to_s, paged: true) }
37+
args.each { |arg| run("package", "list", "-p", hpkg_file(arg).to_s, paged: true) }
3838
end
3939

4040
command "list" do |args|

0 commit comments

Comments
 (0)