oscar-cluster / oscar

OSCAR main source repository.
GNU General Public License v2.0
13 stars 2 forks source link

[opkgc] Problem with setup/api-pre-install #602

Closed dikim33 closed 7 years ago

dikim33 commented 7 years ago

Reported by valleegr on 12 Feb 2011 05:02 UTC The old ''setup'' script for OSCAR packages is specified as being ''api-pre-install'' with the new API. However, how is it possible to call a script from a package before the package is actually installed? It seems to me that it should be ''api-post-install''.

We have this problem on Debian with ODA:

Unpacking opkg-oda (from .../opkg-oda_1.32.2-1_all.deb) ...
/var/lib/dpkg/ tmp.ci/preinst : 2:
/var/lib/oscar/packages/oda/api-pre-install: not found
dpkg: error processing
/var/cache/apt/archives/opkg-oda_1.32.2-1_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/opkg-oda_1.32.2-1_all.deb

I guess the doc is off and script to convert packages is wrong.

dikim33 commented 7 years ago

Comment by valleegr on 14 Feb 2011 17:27 UTC I renamed the ODA script to api-post-install and it works like a charm. The documentation is also updated. I close the ticket.