-
Notifications
You must be signed in to change notification settings - Fork 60
ref: aktualizr client + secondary interface #1719
Conversation
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.
Looks pretty good.
#include <sodium.h> | ||
#include <chrono> |
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.
Not a big deal, but C++ headers should be listed before external libs.
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.
It's not my fault, make format
makes this changed(:
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.
Even if you put empty lines between the C++ and external header sections?
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.
thanks it works
|
||
To use the API, add the `src/libaktualizr` directory to your include path and add `# include "primary/aktualizr.h"` to your source file. | ||
To use the API, add the `aktualizr/include` directory to your include path and add `# include <libaktualizr/aktualizr.h>` to your source file. |
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.
Not your change, but why is there a space between the #
and include
?
9522dea
to
0614de1
Compare
I'm not so sure about putting some headers in a |
No, there is no specific purpose, I'm just not sure if we have to mimic the structure of folders in the public headers as it is in the |
764c225
to
3a3c924
Compare
Codecov Report
@@ Coverage Diff @@
## master #1719 +/- ##
==========================================
- Coverage 74.82% 71.37% -3.45%
==========================================
Files 186 186
Lines 13723 14381 +658
==========================================
- Hits 10268 10265 -3
- Misses 3455 4116 +661
Continue to review full report at Codecov.
|
Signed-off-by: Kostiantyn Bushko <kostiantyn.bushko@yahoo.com>
Signed-off-by: Kostiantyn Bushko <kostiantyn.bushko@yahoo.com>
Signed-off-by: Kostiantyn Bushko <kostiantyn.bushko@yahoo.com>
Signed-off-by: Kostiantyn Bushko <kostiantyn.bushko@yahoo.com>
Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
82be3de
to
2656eae
Compare
@@ -37,14 +37,15 @@ data::InstallationResult PartialVerificationSecondary::putMetadata(const Target | |||
} | |||
|
|||
// TODO(OTA-2484): check for expiration and version downgrade | |||
root_ = Uptane::Root(RepositoryType::Director(), Utils::parseJSON(director_root), root_); | |||
Uptane::Root root(Root::Policy::kAcceptAll); | |||
root = Uptane::Root(RepositoryType::Director(), Utils::parseJSON(director_root), root); |
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.
This is a downgrade in functionality by not storing the Root to check it the next time around. However, this whole class is woefully incomplete, so it doesn't really matter. It needs a lot of work and that isn't part of the scope here.
Signed-off-by: Kostiantyn Bushko kostiantyn.bushko@yahoo.com