/[smeserver]/builds_bin/update_dev_repo
ViewVC logotype

Diff of /builds_bin/update_dev_repo

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by slords, Tue Dec 12 03:54:21 2006 UTC Revision 1.4 by slords, Mon Jan 22 16:37:25 2007 UTC
# Line 7  use Data::Dumper; Line 7  use Data::Dumper;
7    
8  sub compare($$);  sub compare($$);
9    
10    my $test_repo = '/releases/7/smedev';
11  my $releases = 2;  my $releases = 2;
12    
13  my $rpm_flags =  RPM2->vsf_nodsa;  my $rpm_flags =  RPM2->vsf_nodsa;
 my $test_repo = '/releases/7/smedev';  
14  my @repositories = qw(  my @repositories = qw(
                 /releases/7/smeupdates/i386/RPMS/  
15                  /releases/7/smeos/i386/CentOS/RPMS/                  /releases/7/smeos/i386/CentOS/RPMS/
16                    /releases/7/smeupdates/i386/RPMS/
17                  /releases/7/smeupdates-testing/i386/RPMS/                  /releases/7/smeupdates-testing/i386/RPMS/
18                    /releases/7/smeextras/i386/RPMS/
19                  /builds/rpms/RPMS/i386/                  /builds/rpms/RPMS/i386/
20                  /builds/rpms/RPMS/i586/                  /builds/rpms/RPMS/i586/
21                  /builds/rpms/RPMS/i686/                  /builds/rpms/RPMS/i686/
# Line 54  foreach my $rpm (keys %repos) { Line 55  foreach my $rpm (keys %repos) {
55          }          }
56  }  }
57    
58    my $changed = 0;
59  my @pushed;  my @pushed;
60  foreach my $package (sort keys %pushed)  foreach my $package (sort keys %pushed)
61  {  {
# Line 65  foreach my $package (sort keys %pushed) Line 67  foreach my $package (sort keys %pushed)
67                  unless (grep { ! compare($_, $rpm) } @testing) {                  unless (grep { ! compare($_, $rpm) } @testing) {
68                          print "adding ".$rpm->filename."\n";                          print "adding ".$rpm->filename."\n";
69                          system(qw(cp -a), $rpm->filename, "$test_repo/i386/RPMS/");                          system(qw(cp -a), $rpm->filename, "$test_repo/i386/RPMS/");
70                            $changed++;
71                  }                  }
72          }          }
73  }  }
# Line 77  foreach my $rpm (sort compare @testing) Line 80  foreach my $rpm (sort compare @testing)
80          }          }
81  }  }
82    
83  system(qw(rm -rf), "$test_repo/i386/headers", "$test_repo/i386/repodata");  if ($changed) {
84  system(qw(createrepo), "$test_repo/i386");          system(qw(/builds/bin/linksource -s), "$test_repo/i386/RPMS", '-d', "$test_repo/SRPMS");
85  system(qw(yum-arch), "$test_repo/i386");          system(qw(createrepo), "$test_repo/i386");
86            system(qw(repoview), "$test_repo/i386");
87            system(qw(yum-arch), "$test_repo/i386");
88    }
89    
90  sub compare($$) {  sub compare($$) {
91          my ($a, $b) = @_;          my ($a, $b) = @_;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed