/[linux-patches]/genpatches-2.6-misc/web/gentoo_sources_web.pm
Gentoo

Diff of /genpatches-2.6-misc/web/gentoo_sources_web.pm

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

Revision 2270 Revision 2271
275 my $res = substr($_, length($ebuild_base) + length($kernel) + 2); 275 my $res = substr($_, length($ebuild_base) + length($kernel) + 2);
276 $res =~ m/^$pkg-([\d\w\.-]+)\.ebuild:(.*)$/; 276 $res =~ m/^$pkg-([\d\w\.-]+)\.ebuild:(.*)$/;
277 my $ver = $1; 277 my $ver = $1;
278 my $var = $2; 278 my $var = $2;
279 my $ebuild = $pkg.'-'.$ver; 279 my $ebuild = $pkg.'-'.$ver;
280
280 $ver =~ m/^(2\.6\.\d+)/; 281 #$ver =~ m/^(2\.6\.\d+)/;
282 my ($major,$minor) = split(/\./, $ver);
281 my $orig_ver = $1; 283 my $orig_ver = $1;
282 284
283 if ($var =~ /^K_WANT_GENPATCHES="(.*)"$/) { 285 if ($var =~ /^K_WANT_GENPATCHES="(.*)"$/) {
284 $gp_kernels{$ebuild}{'pkg'} = $pkg; 286 $gp_kernels{$ebuild}{'pkg'} = $pkg;
285 $gp_kernels{$ebuild}{'ver'} = $ver; 287 $gp_kernels{$ebuild}{'ver'} = $ver;
286 $gp_kernels{$ebuild}{'wanted'} = $1; 288 $gp_kernels{$ebuild}{'wanted'} = $1;
287 } 289 }
288 if ($var =~ /^K_GENPATCHES_VER="(\d+)"$/) { 290 if ($var =~ /^K_GENPATCHES_VER="(\d+)"$/) {
289 $gp_kernels{$ebuild}{'gprev'} = $orig_ver .'-'. $1; 291 #$gp_kernels{$ebuild}{'gprev'} = $orig_ver .'-'. $1;
292 $gp_kernels{$ebuild}{'gprev'} = $major . '.' . $minor .'-'. $1;
290 } 293 }
291 } 294 }
292 } 295 }
293 296
294 return %gp_kernels; 297 return %gp_kernels;

Legend:
Removed from v.2270  
changed lines
  Added in v.2271

  ViewVC Help
Powered by ViewVC 1.1.20