diff options
author | Florent Villard <warly@mandriva.com> | 2006-08-06 09:06:43 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-08-06 09:06:43 +0000 |
commit | bed5d95e68387ea119cf55a5e1dfc9eb2b98554b (patch) | |
tree | 2001e18f69ea57a2165c6656e0ad6fcc6142aa34 /emi | |
parent | e2ce18ee3fb7e6e52e6de0fd6eb4845e197998db (diff) | |
download | iurt-bed5d95e68387ea119cf55a5e1dfc9eb2b98554b.tar iurt-bed5d95e68387ea119cf55a5e1dfc9eb2b98554b.tar.gz iurt-bed5d95e68387ea119cf55a5e1dfc9eb2b98554b.tar.bz2 iurt-bed5d95e68387ea119cf55a5e1dfc9eb2b98554b.tar.xz iurt-bed5d95e68387ea119cf55a5e1dfc9eb2b98554b.zip |
add emi to upload packages in the queue when all the architectures are done
Diffstat (limited to 'emi')
-rwxr-xr-x | emi | 62 |
1 files changed, 62 insertions, 0 deletions
@@ -0,0 +1,62 @@ +#!/usr/bin/perl +# +# Copyright (C) 2005,2006 Mandriva +# +# Author: Florent Villard <warly@mandriva.com> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# upload packages in queue when all the mandatory architectures are done +# +# TODO +# +# - take the packages in done/ and upload them with youri in queue/ +# - check that the mandatory architectures are present +# + +use strict; +use Iurt::Config qw(config_usage get_date); +my $program_name = 'emi'; + +my %run; +open(my $LOG, ">&STDERR"); +$run{LOG} = $LOG; +my $HOME = $ENV{HOME}; + +my $configfile = "$HOME/.emi.conf"; + +my $config; +if (-f $configfile) { + $config = do $configfile or die "FATAL $program_name: syntax error in $configfile"; +} else { + $config = {} +} + +my %config_usage = ( + arch => { + desc => "List of arch", + default => [ 'i586', 'x86_64', 'ppc' , 'sparc', 'sparc64' ], + }, + mandatory_arch => { + desc => 'List of mandatory architecture to be able to upload', + default => { i596 => 1, x86_64 => 1 }, + }, + tmp => { desc => "Temporary directory", default => "$HOME/tmp/"}, +); +config_usage(\%config_usage, $config) if $run{config_usage}; + +print {$run{LOG}} "$program_name\n"; + +exit |