summaryrefslogtreecommitdiffstats
path: root/src/wgtpkg-uninstall.c
AgeCommit message (Collapse)AuthorFilesLines
2020-05-28Fix uninstall of widgets without iconsScott Murray1-12/+14
Trying to uninstall a widget without an icon would remove the widget files, but report an error, and the widget would not be removed from the database until a reboot, preventing installation of a new version. To fix this, the error handling in uninstall_widget has been reworked to only explicitly return an error when the unlink of the icon file fails for reasons other than the file not being present. This then allows some code cleanup by removing the extra rc2 variable and fixing some error checks where rc and rc2 were being mixed. Bug-AGL: SPEC-3401 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ica4a91f41b2bd9e16e16dee4ce660f6fa1f7840b
2020-02-14Remove distinction of widget's versionJose Bollo1-1/+12
This removes the distinction between the different versions of a widget. The boolean CMAKE option DISTINCT_VERSIONS allows to switch between the two possibilities: DISTINCT_VERSIONS=OFF (default) Widget installed in {afm_appdir}/{id} Ids of applications have no version part: {id} DISTINCT_VERSIONS=ON (legacy, old default) Widget installed in {afm_appdir}/{id}/{ver} Ids of applications have no version part: {id}@{ver} Bug-AGL: SPEC-2538 Change-Id: I7cb54d4b296b740c553be8a627e66175107e5a4b Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2020-01-08Update copyrightJosé Bollo1-1/+1
Change-Id: I1d68e07563d9f0f139d1bc8128e09a5da0a648af Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-12-03Enforce numeric application IDsJosé Bollo1-1/+2
This change allows to index applications numerically. This can be used for various purposes. One of it is to compute the HTTP port. Bug-AGL: SPEC-2968 Change-Id: I74531781f3a39d5d4b09eeb907f57f36822e38f0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-02-07Update date in copyrightssandbox/scottrif29/scottdocsJosé Bollo1-1/+1
Change-Id: Ie2ff321f78c59913373e2ffb2820297fd423d6f4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-28Update date of copyright noticesJosé Bollo1-1/+1
Change-Id: Ia4ef2a6e3c07616ccd756933a82f0806844c4faf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-07-11Allow to install widget with no iconJosé Bollo1-3/+3
This patch allows a widget to not specify any icon but it still enforce when an icon is specified to specify only one icon and to provide the attribute "src". Bug-AGL: SPEC-702 Change-Id: I916b7581ac1f486a4a1d5774d0885c3711029f69 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-02Implement deinstallation of unitsJosé Bollo1-1/+19
Change-Id: I7d9812211bb75f34d55b4035d5b4a3b7ea66f461 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-03Adds 2017 to copyrightsJosé Bollo1-1/+1
Change-Id: I3fcd64a038c6c5bca3d70186e2e68604aa392ed4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-28update dates of headersJosé Bollo1-1/+1
Change-Id: Ie82326a91ff61f079421239ffa83428f552194ab Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-16cmake: improves error detectionJosé Bollo1-4/+4
Add detection of problem of cast. The problems are corrected in the patch. Change-Id: I8dc1e987531790860e390dea53ddf49d52339cb2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-04Adding uninstallation of widgetsJosé Bollo1-0/+102
Change-Id: I8558a77312590181de5313c89ea4c9bdb9b477c7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>