Replace Dos line endings with Unix ones where needed
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_system / ipkg.lua
index a93b4b0..fecc294 100644 (file)
@@ -23,7 +23,7 @@ function t.cfgvalue()
 end
 
 function t.write(self, section, data)
-       return luci.fs.writefile(ipkgfile, data)
+       return luci.fs.writefile(ipkgfile, data:gsub("\r\n", "\n"))
 end
 
 f:append(Template("admin_system/ipkg"))