diff options
author | Loïc Minier <lool@dooz.org> | 2010-01-25 12:33:54 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2010-01-25 12:33:54 +0100 |
commit | 9b2360e49ff26697719b10b1d43a163433e0dfc1 (patch) | |
tree | 6a8e3b214be7dd73578e3adb65ae99521345573b | |
parent | 5cb312ed27d260ca34813c773d0485170d0d1c08 (diff) | |
download | pbuilder-9b2360e49ff26697719b10b1d43a163433e0dfc1.tar pbuilder-9b2360e49ff26697719b10b1d43a163433e0dfc1.tar.gz |
Add more sanity checks
-rwxr-xr-x | pbuilder-apt-config | 5 |
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 |