forked from pool/obs-service-format_spec_file
Accepting request 73966 from home:coolo:branches:openSUSE:Factory
fix invalid licenses OBS-URL: https://build.opensuse.org/request/show/73966 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-format_spec_file?expand=0&rev=11
This commit is contained in:
parent
456d646f73
commit
8f0d677756
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 17 07:27:18 UTC 2011 - coolo@novell.com
|
||||||
|
|
||||||
|
- do not replace licenses without knowing them (not sure this
|
||||||
|
is necessary at all)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 31 08:03:34 UTC 2011 - adrian@suse.de
|
Tue May 31 08:03:34 UTC 2011 - adrian@suse.de
|
||||||
|
|
||||||
|
@ -592,7 +592,7 @@ while (@oldspec) {
|
|||||||
if ($line =~ /^%package/ && $line !~ /\\$/) {
|
if ($line =~ /^%package/ && $line !~ /\\$/) {
|
||||||
$line =~ s/^(%\w+)/lc($1)/e;
|
$line =~ s/^(%\w+)/lc($1)/e;
|
||||||
my ($current_package, $current_lang) = set_current_pkg ( $line );
|
my ($current_package, $current_lang) = set_current_pkg ( $line );
|
||||||
unless ($please_replace{"XXXLICENSE $current_package"}) {
|
unless ($please_replace{"XXXLICENSE $current_package"} || !$replace_hash{"XXXLICENSE $current_package"}) {
|
||||||
print $replace_hash{"XXXLICENSE $current_package"}."\n";
|
print $replace_hash{"XXXLICENSE $current_package"}."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user