Hi Cloud,
Perhaps I'm confused.  What I understood is you created a license template that 
looks like this:
Copyright: copyright (c) 2008 Company:
After running fossinit, the new license is NOT added (because it is less than 
12 tokens).  So, you still have the same set of license templates you had 
before attempting to add the one above.

Then, you uploaded a file containing the line:
Copyright: copyright (c) 2008 Company:
The license scan will "tag" a section of your file as containing a potential 
license based on the "copyright" keyword.  However, when that section is 
compared against all the license templates, it will NOT find a match.  
Therefore, fossology will consider your upload void of any license.

Does that make sense?

For "phrases" that do not qualify as licenses (Eg: Copyright: copyright (c) 
2008 Company: ), the phrase can be added to a list of "one sentence license 
phrases" in the function 1sl.c 
(http://fossology.svn.sourceforge.net/viewvc/fossology/trunk/fossology/agents/foss_license_agent/Filter_License/1sl.c?view=markup).
  Obviously, this code change requires you to recompile/rebuild the code.

Mary

________________________________
From: cloud...@yahoo.com [mailto:cloud...@yahoo.com]
Sent: Wednesday, June 10, 2009 8:46 AM
To: fossology@fossology.org; Laser, Mary
Subject: RE: [FOSSology] License template not being recognized

Thanks for the reply.  I had a file that contained the following line which was 
uploaded:
Copyright: copyright (c) 2008 Company
Shouldn't it have recognized as a license based on the keywords below because 
it was not.

--- On Tue, 6/9/09, Laser, Mary <mary.la...@hp.com> wrote:

From: Laser, Mary <mary.la...@hp.com>
Subject: RE: [FOSSology] License template not being recognized
To: "cloud...@yahoo.com" <cloud...@yahoo.com>
Date: Tuesday, June 9, 2009, 11:50 PM

Hi Cloud,

A license template must be more than 12 tokens.  Anything less can be treated 
as a phrase or "licterm" (license term).  The latter requires a code change.

A list of keywords defined in the wordcheck functions are used to identify text 
which might contain a 
license.(http://fossology.svn.sourceforge.net/viewvc/fossology/trunk/fossology/agents/foss_license_agent/Filter_License/wordcheck.c?view=markup).
  This list includes words such as, "acknowledgement", "agreement", 
"copyright", "disclaimer", "distribute", "liability", "license", "patent", 
"preamble",  "permission", "proprietary", "trademark", etc...

Looking at your example specifically, it contains one of the license keywords 
(copyright), however, it is less than 12 tokens.  Therefore, is is not 
considered a valid license.

HTH,
Mary

________________________________
From: fossology-boun...@fossology.org [mailto:fossology-boun...@fossology.org] 
On Behalf Of cloud...@yahoo.com
Sent: Tuesday, June 09, 2009 7:46 AM
To: fossology@fossology.org
Subject: [FOSSology] License template not being recognized

Hello,

I created a license template with just the following contents:
Copyright: copyright (c) 2008 Company:

This file was under the directory /usr/share/fossology/agents/licenses
I then executed the command
/usr/local/bin/fossinit /usr/local/share/fossology/agents/licenses
When I went to the "Manage License Terms" page, the new license did not appear. 
 If more content is added to the license template, it would appear.  Is there a 
minimum of what needs to appear in the license template?  What type of 
requirement is there for the content that needs to appear in the template?

Thank You




_______________________________________________
fossology mailing list
fossology@fossology.org
http://fossology.org/mailman/listinfo/fossology

Reply via email to