Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 7ebd2d54a52edc3b3c7abff3f9c8c2a8 > files > 103

apt-0.5.15lorg3.95-0.git522.1.fc14.x86_64.rpm

if confget("RPM::Preserve-Config/b", "false") == "true" then
	num = 0
	pkgs = pkglist()
	for i, pkg in ipairs(pkgs) do
		if statinstall(pkg) then
			inp = io.popen("LANG=C /bin/rpm -V --nodeps --nodigest --noscripts --nosignature "..pkgname(pkg).." 2> /dev/null")
			for line in inp.lines(inp) do
				if string.byte(line, 10) == string.byte("c") then
					num = num + 1
					markkeep(pkg)
				end
			end
			io.close(inp)
		end
	end
	if num > 0 then
		print("\nHolding back "..num.." packages because of changed configuration")
	end
end
-- vim:ts=4