diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-12-04 22:42:40 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-12-04 22:42:40 +0000 |
commit | 12b4564b5961d9878e1ef06996bc41696617f5a3 (patch) | |
tree | 5036452a6bfde3f5f637532e371bdecb65cf3056 | |
parent | bf2faeca176834b401c80a4fdd4b910102835128 (diff) | |
download | release-12b4564b5961d9878e1ef06996bc41696617f5a3.tar release-12b4564b5961d9878e1ef06996bc41696617f5a3.tar.gz release-12b4564b5961d9878e1ef06996bc41696617f5a3.tar.bz2 release-12b4564b5961d9878e1ef06996bc41696617f5a3.tar.xz release-12b4564b5961d9878e1ef06996bc41696617f5a3.zip |
simplify
-rwxr-xr-x | rebuild-packages | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/rebuild-packages b/rebuild-packages index 3e34221..bc6036e 100755 --- a/rebuild-packages +++ b/rebuild-packages @@ -18,9 +18,7 @@ print $ci_fh $commit_msg; close $ci_fh; sub list_from_file { - my @res = cat_($_[0]); - chomp @res; - return @res; + chomp_(cat_($_[0])); } sub get_bs_queue_todo() { @@ -50,13 +48,8 @@ sub submit_package { system('mgarepo', 'submit', $pkgname); } -sub rebuild_package { - my ($pkgname) = @_; - bump_release $pkgname; - submit_package $pkgname; -} - my @packages_list = list_from_file($ARGV[0]); foreach (@packages_list) { - rebuild_package($_); + bump_release($_); + submit_package($_); } |