diff options
author | Nicolas Vigier <boklm@mageia.org> | 2012-05-24 17:29:10 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2012-05-24 17:29:10 +0000 |
commit | c8caae3c0a8210b73b3eedd2f8e07d335009cc07 (patch) | |
tree | f4fe21dc71cdfc9f4381b3058d9cfeea63b5c6ac /packages-svn | |
parent | aea618dbb05dfec4574d726cdb8779569456a050 (diff) | |
download | release-c8caae3c0a8210b73b3eedd2f8e07d335009cc07.tar release-c8caae3c0a8210b73b3eedd2f8e07d335009cc07.tar.gz release-c8caae3c0a8210b73b3eedd2f8e07d335009cc07.tar.bz2 release-c8caae3c0a8210b73b3eedd2f8e07d335009cc07.tar.xz release-c8caae3c0a8210b73b3eedd2f8e07d335009cc07.zip |
add list of mageia 2 packages
Diffstat (limited to 'packages-svn')
-rwxr-xr-x | packages-svn | 43 |
1 files changed, 36 insertions, 7 deletions
diff --git a/packages-svn b/packages-svn index e3fc1f7..ce40bd9 100755 --- a/packages-svn +++ b/packages-svn @@ -4,6 +4,7 @@ use strict; use SVN::Core; use SVN::Ra; +use MDK::Common; use Data::Dumper; # autoflush output @@ -68,14 +69,42 @@ sub list_cauldron_packages \@l; } -my $modpkg = modified_packages(list_cauldron_packages()); +sub list_from_file +{ + my @res = cat_($_[0]); + chomp @res; + return @res; +} + +sub print_branch_packages +{ + my ($distrorelease, $pkglist) = @_; + my $ra = SVN::Ra->new($repo_url); + for my $pkgname (@$pkglist) { + my $rev = path_rev($ra, "cauldron/$pkgname/pristine"); + print "cp $repo_url/cauldron/$pkgname\@$rev ", + "$repo_url/updates/$distrorelease/$pkgname \\\n", + + } +} + +sub print_modified_packages +{ + my ($pkglist) = @_; + + my $modpkg = modified_packages(@$pkglist); -print join "\n", sort keys %$modpkg; -print "\n\n"; -for my $pkg (sort keys %$modpkg) { - if ($modpkg->{$pkg}[0] && $modpkg->{$pkg}[1]) { - package_diff($pkg); - print "\n\n\n"; + print join "\n", sort keys %$modpkg; + print "\n\n"; + for my $pkg (sort keys %$modpkg) { + if ($modpkg->{$pkg}[0] && $modpkg->{$pkg}[1]) { + package_diff($pkg); + print "\n\n\n"; + } } } +my $packages_list_file = $ARGV[0]; +my @packages_list = list_from_file($packages_list_file); +print_branch_packages('2', \@packages_list); +#print_modified_packages(\@packages_list); |