aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-25 12:33:54 +0100
committerLoïc Minier <lool@dooz.org>2010-01-25 12:33:54 +0100
commit9b2360e49ff26697719b10b1d43a163433e0dfc1 (patch)
tree6a8e3b214be7dd73578e3adb65ae99521345573b
parent5cb312ed27d260ca34813c773d0485170d0d1c08 (diff)
downloadpbuilder-9b2360e49ff26697719b10b1d43a163433e0dfc1.tar
pbuilder-9b2360e49ff26697719b10b1d43a163433e0dfc1.tar.gz
Add more sanity checks
-rwxr-xr-xpbuilder-apt-config5
1 files changed, 4 insertions, 1 deletions
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