aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-07-12 07:21:16 +0000
committerNicolas Vigier <boklm@mageia.org>2011-07-12 07:21:16 +0000
commit333578abe87a66d083f852f37425e6cd7e4871db (patch)
treea46f78b7fb7f4c2da318a90254945b17cd8bdd8c /lib/Youri
parent22070b35758bf85c606fd4b5a8c9fdd9cf71bd12 (diff)
downloadmga-youri-submit-333578abe87a66d083f852f37425e6cd7e4871db.tar
mga-youri-submit-333578abe87a66d083f852f37425e6cd7e4871db.tar.gz
mga-youri-submit-333578abe87a66d083f852f37425e6cd7e4871db.tar.bz2
mga-youri-submit-333578abe87a66d083f852f37425e6cd7e4871db.tar.xz
mga-youri-submit-333578abe87a66d083f852f37425e6cd7e4871db.zip
add submited packages to maintdb
Diffstat (limited to 'lib/Youri')
-rw-r--r--lib/Youri/Submit/Action/UpdateMaintDb.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Youri/Submit/Action/UpdateMaintDb.pm b/lib/Youri/Submit/Action/UpdateMaintDb.pm
index 10eed21..a8224cf 100644
--- a/lib/Youri/Submit/Action/UpdateMaintDb.pm
+++ b/lib/Youri/Submit/Action/UpdateMaintDb.pm
@@ -25,11 +25,13 @@ sub _init {
my %options = (
maintdb_url => '',
maintdb_key => '',
+ maintdb_binpath => '/usr/local/sbin/maintdb',
@_
);
$self->{_maintdb_url} = $options{maintdb_url};
$self->{_maintdb_key} = $options{maintdb_key};
+ $self->{_maintdb_binpath} = $options{maintdb_binpath};
return $self;
}
@@ -46,6 +48,8 @@ sub run {
my $pkg_media = $repository->_get_main_section($package, $target, $define);
my $pkg_commiter = $define->{user};
+ system($self->{_maintdb_binpath}, 'root', 'new', $pkg_name, $pkg_commiter);
+
my $ua = LWP::UserAgent->new;
$ua->agent('Youri/0.1 ' . $ua->agent);