From 7b9fce9e85d54169f6d3ca7890149a2241e49dd5 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Wed, 9 Jan 2013 15:46:59 -0800 Subject: When setting description with pinyconfig, we need to verify differently. --- pinyadmin/sbin/pinyconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pinyadmin') diff --git a/pinyadmin/sbin/pinyconfig b/pinyadmin/sbin/pinyconfig index a7cc56c..6466ed7 100755 --- a/pinyadmin/sbin/pinyconfig +++ b/pinyadmin/sbin/pinyconfig @@ -88,7 +88,10 @@ if ( not defined $attr ) { print STDERR "$attr is not a legal tweakable, or $value is not a legal value for that tweakable.\n$@\n"; exit( 4 ); }; - if ( $value ne $config->$attr ) { + if ( defined $repo and $attr eq "description" and $value ne $repo->description ) { + print STDERR "Failed to set $attr (perhaps an override is in place)\n"; + exit( 5 ); + } elsif ( $value ne $config->$attr ) { print STDERR "Failed to set $attr (perhaps an override is in place)\n"; exit( 5 ); }; -- cgit v1.2.3