if packageFileExist then
# Searching for matched packages
packageList.each do | packName |
- writeEntry = true if package.name == packName
+ fit = packName.index(package.name)
+ writeEntry = true if fit != nil
end
else
writeEntry = true
if File.file?(packageFile) then
# Searching for matched packages
packageList.each do | packName |
- writeEntry = true if package.name == packName
+ fit = packName.index(package.name)
+ writeEntry = true if fit != nil
end
else
writeEntry = true