Commit 67d6cc6e918dbe94611cc43e94f622aff70d4d41

Thomas de Grivel 2023-02-21T00:43:12

clean-configure

diff --git a/bin/rbpkg b/bin/rbpkg
index c73ca73..471de61 100755
--- a/bin/rbpkg
+++ b/bin/rbpkg
@@ -57,6 +57,8 @@ def rbpkg
     usage()
   when "clone"
     Rbpkg.git_clone($ARGS)
+  when "clean-configure"
+    Rbpkg.clean_configure($ARGS)
   when "clean-sources"
     Rbpkg.clean_sources($ARGS)
   when "fetch"
diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index 1057e11..da52c23 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -21,6 +21,10 @@ class Rbpkg::Repo
     cmd! "cd #{sh_quote(src_dir!)} && git fetch #{sh_quote(git_remote)} #{sh_branch} && git checkout #{sh_branch} && git submodule update"
   end
 
+  def clean_configure
+    tag_remove("configure-done")
+  end
+
   def clean_sources
     if File.directory?(src_dir)
       cmd! "rm -rf #{sh_quote(src_dir)}"