Commit 84db6f9a authored by lyxell's avatar lyxell

Correctly handle packages marked as 'is_fake'

parent dac2fd95
......@@ -334,6 +334,8 @@ def remove (pkgName)
return
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
#remove all files installed by the package
......@@ -357,6 +359,7 @@ def remove (pkgName)
File.unlink "meta/#{pkgName}.directorylist"
end
end
#remove from installed packages
@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