epmfile.pm (599cc5b4) | epmfile.pm (7c807f65) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 524 unchanged lines hidden (view full) --- 533 { 534 my $onereplaces = ${$allreplaces}[$i]; 535 $onereplaces =~ s/\s*$//; 536 installer::packagelist::resolve_packagevariables(\$onereplaces, $variableshashref, 1); 537 if ( $installer::globals::linuxlinkrpmprocess ) { $onereplaces = $onereplaces . "u"; } 538 if ( $installer::globals::debian ) { $onereplaces =~ s/_/-/g; } # Debian allows no underline in package name 539 $line = "%replaces" . " " . $onereplaces . "\n"; 540 push(@epmheader, $line); | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 524 unchanged lines hidden (view full) --- 533 { 534 my $onereplaces = ${$allreplaces}[$i]; 535 $onereplaces =~ s/\s*$//; 536 installer::packagelist::resolve_packagevariables(\$onereplaces, $variableshashref, 1); 537 if ( $installer::globals::linuxlinkrpmprocess ) { $onereplaces = $onereplaces . "u"; } 538 if ( $installer::globals::debian ) { $onereplaces =~ s/_/-/g; } # Debian allows no underline in package name 539 $line = "%replaces" . " " . $onereplaces . "\n"; 540 push(@epmheader, $line); |
541 542 # Force the openofficeorg packages to get removed, 543 # see http://www.debian.org/doc/debian-policy/ch-relationships.html 544 # 7.5.2 Replacing whole packages, forcing their removal 545 546 if ( $installer::globals::debian ) 547 { 548 $line = "%incompat" . " " . $onereplaces . "\n"; 549 push(@epmheader, $line); 550 } | |
551 } 552 553 if ( $installer::globals::debian && $variableshashref->{'UNIXPRODUCTNAME'} eq 'openoffice' ) 554 { 555 $line = "%provides" . " openoffice.org-unbundled\n"; 556 push(@epmheader, $line); | 541 } 542 543 if ( $installer::globals::debian && $variableshashref->{'UNIXPRODUCTNAME'} eq 'openoffice' ) 544 { 545 $line = "%provides" . " openoffice.org-unbundled\n"; 546 push(@epmheader, $line); |
557 $line = "%incompat" . " openoffice.org-bundled\n"; | 547 $line = "%replaces" . " openoffice.org-bundled\n"; |
558 push(@epmheader, $line); 559 } 560 } 561 } 562 563 # including the directives for %requires and %provides 564 565 my $provides = ""; --- 2892 unchanged lines hidden --- | 548 push(@epmheader, $line); 549 } 550 } 551 } 552 553 # including the directives for %requires and %provides 554 555 my $provides = ""; --- 2892 unchanged lines hidden --- |