rpm -ivh successfull but install through C - API fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
   I have a strange problem. I have built a RPM wchich has a %pre
section as below

%pre
if [ -d /opt/running ] ; then
    if [ ! -L /opt/nimRunning ]; then
        ln -sf /opt/running /opt/nimRunning
    fi
fi

  This RPM installs without any problem through the CLI (rpm -ivh
my.rpm). But through a C program using the RPM - APIs it fails with the
following error

  error: %pre(hub1000-3.2.0.1-1) scriptlet failed, exit status 255
  error:   install: %pre scriptlet failed (2), skipping
hub1000-3.2.0.1-1

I suspected the script and tried with an empty %pre section with no
change in the outcome.

Can someone please point to me what I am doing wrong?

Thanks in advance,
Ram Prakash. R




_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux