Re: Automatically identify the suite to use for udeb fetching
On 13.02.2012 11:02, Otavio Salvador wrote:
On Mon, Feb 13, 2012 at 04:18, Adam D. Barratt wrote:
+BUILDD_TARGET=$(shell [[ -e /etc/buildd_target ]] && sed
's,sid,unstable,g' /etc/buildd_target || echo "") +ifeq
+USE_UDEBS_FROM=$(shell grep -q '/sid$' /etc/debian_version && echo
"unstable" || cat /etc/debian_version)
Right now, on a stable system, that will result in USE_UDEBS_FROM
set to "6.0.4". That doesn't seem like it will do anything
particularly as there's no such directory in dists/ (there's a
"Debian6.0.4" symlink, but I imagine that trying to get apt to use
is unlikely to work well).
Ok; I can fix this using "lsb_release -c -s" in case it is not
For the avoidance of any possible ambiguity, "right now" means "on a
system without the new build_target file".