Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion service/lib/agama/storage/finisher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def run?

def run
glob_files.each do |file|
target = File.dirname(file).sub(root_dir, dest_dir)
relative_path = File.dirname(file).delete_prefix(root_dir)
target = File.join(dest_dir, relative_path)

FileUtils.mkdir_p(target)
FileUtils.cp(file, target)
Expand Down
7 changes: 7 additions & 0 deletions service/package/rubygem-agama-yast.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 6 06:09:24 UTC 2025 - Knut Anderssen <kanderssen@suse.com>

- Fix the target path for copying the udev rules and nvme files
introduced by (bsc#123808, gh#agama-project/agama#2257).
(bsc#1241868, gh#agama-project/agama#2328).

-------------------------------------------------------------------
Tue Apr 22 14:14:52 UTC 2025 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion service/test/agama/storage/finisher_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
subject { copy_files }
before do
allow(Yast::Installation).to receive(:destdir).and_return(destdir)
allow(subject).to receive(:root_dir).and_return(File.join(FIXTURES_PATH, "root_dir"))
allow(subject).to receive(:root_dir).and_return(File.join(FIXTURES_PATH, "root_dir/"))
end

around do |block|
Expand Down
Loading