From 9b2360e49ff26697719b10b1d43a163433e0dfc1 Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Mon, 25 Jan 2010 12:33:54 +0100 Subject: Add more sanity checks --- pbuilder-apt-config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pbuilder-apt-config b/pbuilder-apt-config index dcaf165..4f0794d 100755 --- a/pbuilder-apt-config +++ b/pbuilder-apt-config @@ -250,6 +250,9 @@ if [ -n "$profile" ]; then esac ;; ubuntu) + if [ "$base_dist" != "${profile%%-*}" ]; then + die "Unknown Ubuntu based profile=$profile" + fi case "$profile" in *-backports) pockets="updates backports" @@ -262,7 +265,7 @@ if [ -n "$profile" ]; then ;; *) if [ "$base_dist" != "$profile" ]; then - die "Unknown Ubuntu based profile=$profile" + die "Unknown Ubuntu pocket based profile=$profile" fi ;; esac -- cgit v1.2.3