Added project to project linking

This commit is contained in:
alexey
2025-03-09 23:50:10 +03:00
parent aee02beb03
commit 91fa281237
6 changed files with 175 additions and 38 deletions

View File

@@ -1,5 +1,5 @@
class RepoManager
attr :path, :error
attr :path, :error, :last_status, :last_pid
def initialize(path)
@error = nil
@@ -10,5 +10,10 @@ class RepoManager
end
def create_repo
%x(/usr/bin/createrepo_c --database --workers 1 "#{@path}")
result = $?
@last_status = result.exitstatus
@last_pid = result.pid
result
end
end