Commit 84db6f9a authored by lyxell's avatar lyxell

Correctly handle packages marked as 'is_fake'

parent dac2fd95
...@@ -334,6 +334,8 @@ def remove (pkgName) ...@@ -334,6 +334,8 @@ def remove (pkgName)
return return
end end
#if the package is marked as 'is_fake', the file/directorylists doesn't exist
if File.file?("meta/#{pkgName}.filelist")
Dir.chdir CREW_CONFIG_PATH do Dir.chdir CREW_CONFIG_PATH do
#remove all files installed by the package #remove all files installed by the package
...@@ -357,6 +359,7 @@ def remove (pkgName) ...@@ -357,6 +359,7 @@ def remove (pkgName)
File.unlink "meta/#{pkgName}.directorylist" File.unlink "meta/#{pkgName}.directorylist"
end end
end
#remove from installed packages #remove from installed packages
@device[:installed_packages].each do |elem| @device[:installed_packages].each do |elem|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment