[ https://issues.apache.org/jira/browse/SLING-9558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Munteanu resolved SLING-9558. ------------------------------------ Assignee: Robert Munteanu Resolution: Fixed PR merged, thanks [~hsagi...@gmail.com]! > slingpackager - the --install command does not work with upload command on > Composum > ----------------------------------------------------------------------------------- > > Key: SLING-9558 > URL: https://issues.apache.org/jira/browse/SLING-9558 > Project: Sling > Issue Type: Bug > Reporter: Henry Saginor > Assignee: Robert Munteanu > Priority: Major > Fix For: Packager 0.0.5 > > > The slingpackage tool upload command has --install option to automatically > install the package after it's uploaded. It only works with AEM Package > manager. It breaks with basic Sling + Composum due to a missing method > implementation. > This results in the following error - > lingpackager upload --install headwire-full-package-1.0-SNAPSHOT.zip > Uploading package > /home/rr/ws/peregrinesamples/samplesites/headwire-full-package-1.0-SNAPSHOT.zip > on http://localhost:8080 > successful > /home/rr/ws/peregrinesamples/sling-slingpackager/utils/composumpackager.js:64 > installPackage(url, username, password, json.path, maxRetry); > ^ > ReferenceError: installPackage is not defined > at callPostService > (/home/rr/ws/peregrinesamples/sling-slingpackager/utils/composumpackager.js:64:17) > at Request.request [as _callback] > (/home/rr/ws/peregrinesamples/sling-slingpackager/utils/composumpackager.js:295:21) > at Request.self.callback > (/home/rr/ws/peregrinesamples/sling-slingpackager/node_modules/request/request.js:185:22) > at Request.emit (events.js:198:13) > at Request.<anonymous> > (/home/rr/ws/peregrinesamples/sling-slingpackager/node_modules/request/request.js:1161:10) > at Request.emit (events.js:198:13) > at IncomingMessage.<anonymous> > (/home/rr/ws/peregrinesamples/sling-slingpackager/node_modules/request/request.js:1083:12) > at Object.onceWrapper (events.js:286:20) > at IncomingMessage.emit (events.js:203:15) > at endReadableNT (_stream_readable.js:1145:12) -- This message was sent by Atlassian Jira (v8.3.4#803005)