diff options
Diffstat (limited to 'pinyadmin')
-rwxr-xr-x | pinyadmin/sbin/pinyconfig | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pinyadmin/sbin/pinyconfig b/pinyadmin/sbin/pinyconfig index 203e1f7..a7cc56c 100755 --- a/pinyadmin/sbin/pinyconfig +++ b/pinyadmin/sbin/pinyconfig @@ -61,6 +61,10 @@ if ( not defined $attr ) { }; }; + if ( defined $repo ) { + print "description => " . $repo->description . "\n"; + }; + } else { $attr = lc $attr; @@ -74,7 +78,11 @@ if ( not defined $attr ) { undef $@; eval { - $config->$attr( $value ); + if ( defined $repo and $attr eq "description" ) { + $repo->description( $value ); + } else { + $config->$attr( $value ); + }; }; if ( $@ ) { print STDERR "$attr is not a legal tweakable, or $value is not a legal value for that tweakable.\n$@\n"; @@ -91,7 +99,11 @@ if ( not defined $attr ) { undef $@; eval { - print "$attr = " . $config->$attr . "\n"; + if ( defined $repo and $attr eq "description" ) { + print "description = " . $repo->description . "\n"; + } else { + print "$attr = " . $config->$attr . "\n"; + }; }; if ( $@ ) { print STDERR "$attr is not a legal tweakable, or its current value is illegal.\n$@\n"; |