summaryrefslogtreecommitdiff
path: root/pinyadmin/sbin
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2013-01-09 15:46:59 -0800
committerJulian Blake Kongslie <jblake@omgwallhack.org>2013-01-09 15:46:59 -0800
commit7b9fce9e85d54169f6d3ca7890149a2241e49dd5 (patch)
tree7a148a8603cbdb77c29b02b14533dab947e09b54 /pinyadmin/sbin
parent435a35baba7fd3eec0c2270a902efe210bc052af (diff)
downloadpiny-code-7b9fce9e85d54169f6d3ca7890149a2241e49dd5.tar.gz
piny-code-7b9fce9e85d54169f6d3ca7890149a2241e49dd5.zip
When setting description with pinyconfig, we need to verify differently.
Diffstat (limited to 'pinyadmin/sbin')
-rwxr-xr-xpinyadmin/sbin/pinyconfig5
1 files changed, 4 insertions, 1 deletions
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 );
};