Commit 45dfff0c08c748f81886fc63dbb19d1cede7e34d

Thomas de Grivel 2023-02-22T23:50:00

upgrade

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index ae81ab0..5b15482 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -383,6 +383,9 @@ class Rbpkg::Repo
   def upgrade
     pull
     return if installed_version == version
+    package
+    uninstall
+    install
   end
 
   def version