aboutsummaryrefslogtreecommitdiffstats
path: root/src/wgtpkg-install.c
AgeCommit message (Collapse)AuthorFilesLines
2019-04-23wgtpkg-install: Force uninstalleelJose Bollo1-0/+11
This commit forces uninstall of the previous installed version instead of reinstall to get around a bug in cynara. Bug-AGL: SPEC-1230 Cherry-picked from master for EEL version of AGL for bug SPEC-2286. Bug-AGL: SPEC-2286 Change-Id: I679b7b51ac978364c660d3275b2b132e99601e3a Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2017-08-08wgtpkg-install: search in subdir "htdocs" alsoJosé Bollo1-0/+11
For widgets that are fully HTML, the search of the content was not checking the subdirectory "htdocs" that is enforced elsewhere. This commits add the search of the content in the subdirectory "htdocs". This is a temporarily fix. A better complete solution has to be delivered later. Bug-AGL: SPEC-808 Change-Id: I8bef7c4a31ff919827ceca05e203c2b277cf7657 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-07Handle file-properties for setting eXecutable flagJosé Bollo1-0/+34
This commits introduce the feature "urn:AGL:widget:file-properties". This feature actually only allows to set execution flag to files of the widget. Example: <feature name="urn:AGL:widget:file-properties"> <param name="flite" value="executable" /> <param name="jtalk" value="executable" /> </feature> Bug-AGL: SPEC-384 Change-Id: If13ca3b1015576317fd52cb9540b77d0e2675f67 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-07-11Allow to install widget with no iconJosé Bollo1-4/+8
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-07-03install: improve port detectionJosé Bollo1-10/+52
Check any existing X-AFM-http-port or X-AFM--http-port. Change-Id: I1111095664535c849c76870f2e5104fb07099ab4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-31Check content existing and fix executableJosé Bollo1-14/+72
Change-Id: I4060334cb9c677df1ce86c99a1cb37abc007f3c7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-30Fix lack of message when setting exec bitJosé Bollo1-3/+7
Nothing was telling that the content couldn't be set as executable. Note that nothing is made to check that a content (executable or not) exist. Also note that installing several executables for one widget isn't possible now. Change-Id: I10373fa27cd8d1d90c292e3529d8a5eec62bb8f0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-02Use structures for generating unitsJosé Bollo1-2/+6
Change-Id: I7258a494d62ef22219c973048d052965cb5fea28 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17wgtpkg-install: choose the portJosé Bollo1-1/+64
The installer now chooses a port for an installed application. This choose is made by consulting the previously installed applications and by getting the lowest port available in the range 1024..32767. Change-Id: Iab4238b4d52447a2d261d87d45bbb02f0b7a35e5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17wgtpkg-install: creates the systemd unitsJosé Bollo1-21/+33
Change-Id: Ia3cdcb76a9f7b3bda77a9d9fcb38dfd85eb85804 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-14Splits the widget validation functionJosé Bollo1-2/+12
Change-Id: I543995c8bb64a859a7c0eb6cc09217d2f71ccc38 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-26Get the install directoryJosé Bollo1-9/+21
The function 'move_widget' was the only one that worried about the name of the installation directory. This commit split the function in two and enforce to get the name of the install directory. Change-Id: I6d89b4c94b2898a6ba95a3045b3f5db23d54c499 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-09Put strings in one placeJosé Bollo1-6/+4
Change-Id: I79afd4fa18996e7879db4c11480a5400637dad2d 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-12-20temporary grant requested permissionsJosé Bollo1-1/+2
Change-Id: If9a7d2a183aa8b0c0ed531b4d915443e199b488b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-12-14wgtpkg-install: set exec flag for application/vnd.agl.nativeJosé Bollo1-3/+14
This is needed for executable having a binder. Also conforming to RFC 2045, mime types are made case insensitive. Change-Id: I065c8eada5ec044daca73b3bf994b0d6f3587414 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-16wgtpkg-install: set the exec flagJosé Bollo1-0/+11
Change-Id: Iae3acfcd12f1b01ebf47225af72220e61a24767f 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-10-18Minor improvementsJosé Bollo1-4/+4
- Clean cmake files - Fix orthograph and vocabulary Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-09-12Describes the permissions in the config fileJosé Bollo1-12/+30
Change-Id: I9f786ed0ae552354383796c4137a82b6116ad016 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-09-12Fix installation of more than one widgetJosé Bollo1-0/+1
Using command line tool, it is possible to install more than just one widget. Before this commit, the list of requested permission was not cleaned. Change-Id: Ic9311754f51f12d6231d1f08a55eb4b4aef0c74e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-09-12add documentation & ideas about config.xmlJosé Bollo1-2/+7
Also enforce the strings for 'id' and 'version' to be not empty in config.xml Change-Id: I510b62891885033e0b750fac5f5de5e0fd25d75d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-16cmake: improves error detectionJosé Bollo1-9/+9
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-1/+1
Change-Id: I8558a77312590181de5313c89ea4c9bdb9b477c7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-01-05workdir: avoid use of absolute pathJosé Bollo1-1/+1
Change-Id: Id3e039d1279f8afa5cda4359254362f2afacab61 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-01-04wgt-info: adding field 'ver' for major.minorJosé Bollo1-2/+3
Change-Id: I3f9684b1e313894c5c796141d3a0b36831e52695 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2015-12-29wgtpkg: spliting of headersJosé Bollo1-1/+7
Change-Id: I8ac6a16c936b73c6ce74ee41ae9c5a2ad9d042ee
2015-12-22implementation of installation by the daemonJosé Bollo1-3/+6
Change-Id: I50ceca8c515df5a22f3387ccd1a6e3716641661f
2015-12-22refactoring and moving forwardJosé Bollo1-4/+4
Rename af-... files to afm-... Add system daemon draft Change-Id: I3f8b69ac9cc5af54be34b4ad11a512c57c0230b6
2015-12-17Bug fix and authoringJosé Bollo1-0/+2
Change-Id: I431915ac83727ab2cd27de37ace5015effcc7746 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2015-12-15work in progressJosé Bollo1-1/+0
Change-Id: Ifa4371f99968a56e980396f7009ab5030b831ebb
2015-12-15in progressJosé Bollo1-1/+4
Change-Id: Ida682c87abc3413e0e84c56f60d54e1c5409fd3a
2015-12-13work in progressJosé Bollo1-14/+14
Change-Id: I197678515772982ab6dd2fd949fa2a54ca4f268f
2015-12-11more workJosé Bollo1-5/+96
Change-Id: I7eac968a21766be44068463bcab8aaaa3d12941f
2015-12-11work in progressJosé Bollo1-32/+55
Change-Id: I65416563a8dc54e877df03a304fe4cbd42ebb3da
2015-12-11don't change of directory anymoreJosé Bollo1-203/+73
Change-Id: I9f5906d3e053b3fa0f3000d07c4af3f666fe079a
2015-12-10improve opacity and fix bugJosé Bollo1-0/+3
Change-Id: I18a24d83fe7c434f1ef22d33cec5f5d443d53706
2015-12-10added info retrievalJosé Bollo1-33/+225
Change-Id: I6f91b15e87308cf01db4ddafa3c2715c251f5fe5
2015-12-09refactoring sourcesJosé Bollo1-0/+84
Change-Id: Id6d52eee86b706958972e9b345ec0d4d1e488146 Signed-off-by: José Bollo <jose.bollo@iot.bzh>