diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2013-01-09 15:11:55 -0800 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2013-01-09 15:11:55 -0800 |
commit | 435a35baba7fd3eec0c2270a902efe210bc052af (patch) | |
tree | b495db4ac7ae25ed827a64df22c65befdb3aa84b /pinyadmin/sbin/pinyconfig | |
parent | 33cfec71405831fdb70bed16aa08ad7222e45b5f (diff) | |
download | piny-code-435a35baba7fd3eec0c2270a902efe210bc052af.tar.gz piny-code-435a35baba7fd3eec0c2270a902efe210bc052af.zip |
Completely untested support in pinyconfig for repo description.
Diffstat (limited to 'pinyadmin/sbin/pinyconfig')
-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"; |