diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-10-13 20:49:49 -0700 |
---|---|---|
committer | jblake+piny@omgwallhack.org <jblake@omgwallhack.org> | 2010-10-13 20:49:49 -0700 |
commit | 69fb1fedd2cf7ee0f068a90384c21645f967c0d2 (patch) | |
tree | a3c36f732187b1ab6d6756a4bf7dc2771349b1d9 /usr | |
parent | 28a06123a0889c6ef4682a2959367236a89319dd (diff) | |
download | piny-code-69fb1fedd2cf7ee0f068a90384c21645f967c0d2.tar.gz piny-code-69fb1fedd2cf7ee0f068a90384c21645f967c0d2.zip |
Don't hardcode repo descriptions in cgitrc.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/libpiny/lib/Piny/Repo.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/libpiny/lib/Piny/Repo.pm b/usr/src/libpiny/lib/Piny/Repo.pm index 613d75b..84eb0c9 100644 --- a/usr/src/libpiny/lib/Piny/Repo.pm +++ b/usr/src/libpiny/lib/Piny/Repo.pm @@ -232,7 +232,7 @@ sub rebuild { rename( $temp->filename, "/etc/ikiwiki/wikilist" ) or die "Could not rename over old wikilist: $!"; open( CGITLIST, ">", "/etc/cgitrc.d/" . $s->name ) or die "Could not create cgitrc.d file: $!"; - print CGITLIST "repo.url=" . $s->name . "\nrepo.path=" . $s->path . "\nrepo.desc=" . $s->description . "\nrepo.owner=" . $s->owner->email->address . "\n\n"; + print CGITLIST "repo.url=" . $s->name . "\nrepo.path=" . $s->path . "\nrepo.owner=" . $s->owner->email->address . "\n\n"; close( CGITLIST ) or die "Could not close cgitrc.d file: $!"; $temp = File::Temp->new( ) or die "Could not create temporary file: $!"; @@ -452,7 +452,7 @@ sub create { rename( $temp->filename, "/etc/ikiwiki/wikilist" ) or die "Could not rename over old wikilist: $!"; open( CGITLIST, ">", "/etc/cgitrc.d/" . $repo->name ) or die "Could not create cgitrc.d file: $!"; - print CGITLIST "repo.url=" . $repo->name . "\nrepo.path=" . $repo->path . "\nrepo.desc=" . $repo->description . "\nrepo.owner=" . $repo->owner->email->address . "\n\n"; + print CGITLIST "repo.url=" . $repo->name . "\nrepo.path=" . $repo->path . "\nrepo.owner=" . $repo->owner->email->address . "\n\n"; close( CGITLIST ) or die "Could not close cgitrc.d file: $!"; $temp = File::Temp->new( ) or die "Could not create temporary file: $!"; |