From 2f862e33447446116907c60ba1142369f70a99ab Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Wed, 13 Oct 2010 20:43:12 -0700 Subject: Rebuilding repo configs. --- usr/src/pinyadmin/debian/control | 2 +- usr/src/pinyadmin/doc/rebuildrepo.latex | 16 ++++++++++++++++ usr/src/pinyadmin/doc/rmrepo.latex | 2 +- usr/src/pinyadmin/sbin/rebuildrepo | 14 ++++++++++++++ 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 usr/src/pinyadmin/doc/rebuildrepo.latex create mode 100755 usr/src/pinyadmin/sbin/rebuildrepo (limited to 'usr/src/pinyadmin') diff --git a/usr/src/pinyadmin/debian/control b/usr/src/pinyadmin/debian/control index db838bd..e8c2d70 100644 --- a/usr/src/pinyadmin/debian/control +++ b/usr/src/pinyadmin/debian/control @@ -7,7 +7,7 @@ Standards-version: 3.8.4 Package: pinyadmin Architecture: all -Depends: ${perl:Depends}, ${misc:Depends}, libpiny-perl (>= 0.13), moreutils +Depends: ${perl:Depends}, ${misc:Depends}, libpiny-perl (>= 0.14), moreutils Description: Administrative programs for piny The command-line programs for day-to-day administrative tasks in the Piny infrastructure. diff --git a/usr/src/pinyadmin/doc/rebuildrepo.latex b/usr/src/pinyadmin/doc/rebuildrepo.latex new file mode 100644 index 0000000..a2e0935 --- /dev/null +++ b/usr/src/pinyadmin/doc/rebuildrepo.latex @@ -0,0 +1,16 @@ +\usepackage{latex2man} + +\begin{Name}{8piny}{rebuildrepo}{Piny Team}{Piny}{rebuildrepo} + +\Prog{rebuildrepo} - rebuild a repo configuration + +\section{Synopsis} + +\Prog{rebuildrepo} \Arg{reponame} \Dots + +\section{Description} + +The \Prog{rebuildrepo} command rewrites all of the configuration files for +the given repo and adjusts ownership and group membership of its files to a +normalized state. It is needed to propagate certain kinds of changes; +normally only the system administrator should run it. diff --git a/usr/src/pinyadmin/doc/rmrepo.latex b/usr/src/pinyadmin/doc/rmrepo.latex index a820d8f..12b58df 100644 --- a/usr/src/pinyadmin/doc/rmrepo.latex +++ b/usr/src/pinyadmin/doc/rmrepo.latex @@ -6,7 +6,7 @@ \section{Synopsis} -\Prog{rmrepo} \Arg{reponame} +\Prog{rmrepo} \Arg{reponame} \Dots \section{Description} diff --git a/usr/src/pinyadmin/sbin/rebuildrepo b/usr/src/pinyadmin/sbin/rebuildrepo new file mode 100755 index 0000000..9d4e359 --- /dev/null +++ b/usr/src/pinyadmin/sbin/rebuildrepo @@ -0,0 +1,14 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use Piny; + +foreach my $reponame ( @ARGV ) { + + my $repo = Piny::Repo->new( $reponame ); + + $repo->rebuild; + +}; -- cgit v1.2.3