Sophie

Sophie

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

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


function installdevel(name)
	pkg = pkgfind(name.."-devel")
	if pkg and not pkgvercur(pkg) then
		markinstall(pkg)
	end
	pkg = pkgfind(name.."-devel-static")
	if pkg and not pkgvercur(pkg) then
		markinstall(pkg)
	end
end

for i, pkg in pairs(pkglist()) do
	if pkgvercur(pkg) then
		installdevel(pkgname(pkg))
		name = pkgname(pkg)
		while string.gfind(string.sub(name, -1), "%d")() do
			name = string.sub(name, 1, -2)
		end
		if name ~= pkgname(pkg) then
			installdevel(name)
		end
	end
end