Commit 047c0e22c6e1c7a7d9beacca7058ad22ec8c8aef

Thomas de Grivel 2023-02-23T22:49:39

required_by

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index 61d895d..e5b59d7 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -410,7 +410,7 @@ class Rbpkg::Repo
             file = scan[1]
             hash = scan[2]
             path = "#{Rbpkg.prefix}/#{file}"
-            `echo 'SHA256 (#{sh_quote(path)}) = #{sh_quote(hash)}' | sha256 -c`
+            `echo 'SHA256 (#{sh_quote(path)}) = #{sh_quote(hash)}' | #{Rbpkg.sha256} -c`
             if $?.success?
               cmd! "rm #{sh_quote(path)}"
             end
@@ -423,7 +423,6 @@ class Rbpkg::Repo
 
   def uninstall_required_by
     verbose 3, "repo(#{name}).uninstall_required_by"
-    puts required_by.inspect
     required_by.each do |req|
       Rbpkg::Repos.repo(req).uninstall
     end