~ubuntu-branches/debian/sid/ca-certificates-java/sid

« back to all changes in this revision

Viewing changes to debian/postinst.in

  • Committer: Package Import Robot
  • Author(s): Andreas Beckmann
  • Date: 2013-01-27 14:19:41 UTC
  • Revision ID: package-import@ubuntu.com-20130127141941-yeb7jin0844ohsnm
Tags: 20121112+nmu2
* Non-maintainer upload.
* postinst, jks-keystore.hook: Do not fail if nss.cfg does not (yet) exist,
  i.e. if openjdk-?-jre-headless is unpacked but not yet configured.
  (Closes: #694888)
* Set urgency to medium for RC bugfix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
{
41
41
    if which dpkg-query >/dev/null; then
42
42
    nsspkg=$(dpkg-query -L "$(nsslib_name)" | sed -n 's,\(.*\)/libnss3\.so$,\1,p'|head -n 1)
43
 
    nssjdk=$(sed -n '/nssLibraryDirectory/s/.*= *\(.*\)/\1/p' /etc/${jvm%-$arch}/security/nss.cfg)
 
43
    nsscfg=/etc/${jvm%-$arch}/security/nss.cfg
 
44
    nssjdk=$(test ! -f $nsscfg || sed -n '/nssLibraryDirectory/s/.*= *\(.*\)/\1/p' $nsscfg)
44
45
    if [ -n "$nsspkg" ] && [ -n "$nssjdk" ] && [ "$nsspkg" != "$nssjdk" ]; then
45
46
        ln -sf $nsspkg/libnss3.so $nssjdk/libnss3.so
46
47
    fi