From 435a35baba7fd3eec0c2270a902efe210bc052af Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Wed, 9 Jan 2013 15:11:55 -0800 Subject: Completely untested support in pinyconfig for repo description. --- pinyadmin/sbin/pinyconfig | 16 ++++++++++++++-- 1 file 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"; -- cgit v1.2.3