[email protected] wrote:
Thanks, the command did work. What does the argument "-q
agent_license" do? I was able to get the first command I was using to
work as well. I noticed when I executed with the -q argument, it
showed that two out of two jobs were completed for that upload and
when I executed without the -q, it showed that one out of one
job completed for that upload. Why is that?
Can the upload using the cp2foss command be deleted through the UI?
When I select to delete upload files, it shows the folder name in the
drop-down list, but when I select the folder, there is no file
displayed to delete. Also, can the folder be deleted through the UI?
When using either the UI or cp2foss, the only jobs that get scheduled
if no boxes are checked (in the UI) or no -q arguments are given to
cp2foss, the the file is only unpacked. (along with a supporting job
called adj2nest). So that is why without -q you see one job and with -q
you see 2. -q agent_license runs the license analysis on the file (what
most folks are interested in).
Using cp2foss, without a -q, the file is just unpacked, not very
interesting.
The upload and folder can be removed using the UI. The is the
recommended way.
When deleting, if you select the folder and nothing shows, then there is
no upload to remove, the folder is empty.
Glad you have been able to get things to work. Let me know if you need
more help.
------------------------------------------------------------------------
*From:* Mark Donohoe <[email protected]>
*To:* "[email protected]" <[email protected]>
*Cc:* "[email protected]" <[email protected]>
*Sent:* Friday, June 26, 2009 2:38:10 PM
*Subject:* Re: [FOSSology] Executing cp2foss command
[email protected] <mailto:[email protected]> wrote:
> Hi Mark,
> Thanks for the patch. I applied it but the upload still didn't
work. I've attached the output and also a screenshot of when I select
Browse through the UI. I did not see a test directory get created
under tmp either. Any ideas what I'm doing wrong? Thanks
>
Cloudczm,
hmmm, I was not able to reproduce your problem on Lenny. I could
upload a jar file just fine.
I used:
cp2foss -p tmp -n test -d "testing" -w -a
/http://localhost/~markd/public_html/org.eclipse.core.jobs_3..4.0.v20080512.jar
cp2foss -p tmp -n test -d "testing" -w -a http://localhost/test.jar
A couple of notes. 1. you don't need -w or -a, they don't really do
anything anymore, deprecated.
2. -p means create a folder tmp under Software Repository in the db.
That appeared to work for you. Are you saying the you didn't see a
file called 'test' under the folder tmp?
3. Was the test.jar file in your localhost document root so it could
be uploaded?
4. try the following:
cp2foss -q agent_license -p tmp1 -n test2 -d "test upload"
<path-to-test.jar>
The above should:
1. upload the jar file, unpack it., note you don't need the http....
2. The upload dame is test2 (as opposed to test.jar)
3. The description for this upload is: "test upload"
4. a license analysis will be run on the file
After issuing the command, you should be able to use the browser to
monitor the progress of the jobs with the menu: Jobs->details, and
then refresh every once and a while.
Please let me know about your results.
---
Mark Donohoe
MOST/OSTT, Cupertino CA.
fossology.org <http://fossology.org/>
--
Mark Donohoe
MOST/OSTT, Cupertino CA.
fossology.org
_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology