FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Replase the old license shortname with new license shortname. More...
Go to the source code of this file.
Functions | |
renameLicenses21to22 ($verbose) | |
Create map of old_shortname to new_shortname for 2.1 to 2.2 and call renameLicenses. More... | |
renameLicensesForSpdxValidation ($verbose) | |
Create map of old_shortname to new_shortname for SPDX and call renameLicenses. More... | |
renameLicenses ($shortname_array, $Verbose) | |
Rename old shortname to new shortname. More... | |
check_shortname ($shortname) | |
check if the shortname is existing in license_ref table More... | |
update_license ($old_rf_pk, $new_rf_pk) | |
update license from old to new 1) update license_file set rf_fk=new_rf_pk where rf_fk=old_rf_pk 2) update license_file_audit set rf_fk=new_rf_pk where rf_fk=old_rf_pk 3) delete from license_ref where rf_pk=old_rf_pk More... | |
change_license_name ($old_shortname, $new_shortname) | |
change license shortname More... | |
Replase the old license shortname with new license shortname.
This should be called by fossinit and dbmigrate_2.1-2.2.
Definition in file fo_mapping_license.php.
change_license_name | ( | $old_shortname, | |
$new_shortname | |||
) |
change license shortname
string | $old_shortname | - old license shortname |
string | $new_shortname | - new license shortname |
Definition at line 586 of file fo_mapping_license.php.
check_shortname | ( | $shortname | ) |
check if the shortname is existing in license_ref table
string | $shortname | - the license which you want to check |
Definition at line 502 of file fo_mapping_license.php.
renameLicenses | ( | $shortname_array, | |
$Verbose | |||
) |
Rename old shortname to new shortname.
mixed | $shortname_array | Map of short names [old_shortname]=>new_shortname |
boolean | $Verbose | Print job info if TRUE |
Definition at line 459 of file fo_mapping_license.php.
renameLicenses21to22 | ( | $verbose | ) |
Create map of old_shortname to new_shortname for 2.1 to 2.2 and call renameLicenses.
boolean | $verbose | Print job info if TRUE |
replace
change
replase
change
replace
change
replace
change
replace
change
Sleepycat's license text is incorrect
replace
change
Definition at line 43 of file fo_mapping_license.php.
renameLicensesForSpdxValidation | ( | $verbose | ) |
Create map of old_shortname to new_shortname for SPDX and call renameLicenses.
boolean | $verbose | Print job info if TRUE |
Definition at line 395 of file fo_mapping_license.php.
update_license | ( | $old_rf_pk, | |
$new_rf_pk | |||
) |
update license from old to new 1) update license_file set rf_fk=new_rf_pk where rf_fk=old_rf_pk 2) update license_file_audit set rf_fk=new_rf_pk where rf_fk=old_rf_pk 3) delete from license_ref where rf_pk=old_rf_pk
int | $old_rf_pk | - the rf_pk of old license shortname |
int | $new_rf_pk | - the rf_pk of new license shortname |
transaction begin
delete data of old license
transaction end
Definition at line 525 of file fo_mapping_license.php.