-
Notifications
You must be signed in to change notification settings - Fork 483
feat(copyright): allow copyright to run standalone #1155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(copyright): allow copyright to run standalone #1155
Conversation
Thanks @maxhbr , this was a much required feature. It is working fine as a CLI agent but can not communicate with FOSSology as an agent. |
5c6068d
to
efe6744
Compare
efe6744
to
aa0343d
Compare
aa0343d
to
d20f385
Compare
One quick suggestion here, rename the PR with WIP: xxx instead of fighting with the bot 😉 |
Is the PR ready @maxhbr ? |
Yes, it is labeled as |
You can always check out the state after the merge via:
and one should always do that, to actually test the correct state. |
d20f385
to
8349600
Compare
Branch is rebased Edit: travis fails, since it pulls the branch from the wrong remote... |
The code is working with scheduler but it gave me a core dump for
|
I will check that. |
8349600
to
cbecf05
Compare
For the command line usage of copyright, no connection to the DB is necessary. Previously the DbConnection was initializen on every start of copyright, with this changes here the initialization is moved to the if branch, which corresponds to the scheduler usage.
cbecf05
to
f5c89fa
Compare
The segfault should be fixed by https://github.com/fossology/fossology/pull/1155/files#diff-349cf04da2e1ce5fd6730721eb3ec205R342 Additionally I have added https://github.com/fossology/fossology/pull/1155/files#diff-d9b27972f680d5d2bb8cc20f4aae4c38R125 to have exit code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, working fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good.
@GMishx merge? |
For the command line usage of copyright, no connection to the DB is necessary.
Previously the DbConnection was initializen on every start of copyright, with the changes here the initialization is moved to the if-branch, which corresponds to the scheduler usage. This allows to use the copyright agent stand-alone without the need of a DB or a configuration.