summaryrefslogtreecommitdiff
path: root/pinyadmin
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2013-01-09 15:50:53 -0800
committerJulian Blake Kongslie <jblake@omgwallhack.org>2013-01-09 15:50:53 -0800
commit924dc064a5d8c1222ef9ea20ad8e8401f24d7569 (patch)
treef500dbf08cb9930ee5f1c733fdfc9f8a2a59f516 /pinyadmin
parent7b9fce9e85d54169f6d3ca7890149a2241e49dd5 (diff)
downloadpiny-code-924dc064a5d8c1222ef9ea20ad8e8401f24d7569.tar.gz
piny-code-924dc064a5d8c1222ef9ea20ad8e8401f24d7569.zip
ugh fine i guess my bugfix should actually fix a bug
Diffstat (limited to 'pinyadmin')
-rwxr-xr-xpinyadmin/sbin/pinyconfig8
1 files changed, 5 insertions, 3 deletions
diff --git a/pinyadmin/sbin/pinyconfig b/pinyadmin/sbin/pinyconfig
index 6466ed7..d6cb795 100755
--- a/pinyadmin/sbin/pinyconfig
+++ b/pinyadmin/sbin/pinyconfig
@@ -88,9 +88,11 @@ 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 ( 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 );
+ if ( defined $repo and $attr eq "description" ) {
+ if ( $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 );