On Fri, 2002-01-25 at 02:12, Jamie Cameron wrote:
> PERA Christophe <cp...@cy...> wrote ..
> > Hi,
> > I have got a problem with install package functionalities.
> > In fact, the cgi file "install_pack.cgi" in software module
> > doesn't detect my rpm archive as an install package ...
> > It seems function "is_package" in "rpm-lib.pl" is correct.
> > (even if it works only on english error messages sent by
> > rpm command).
> >
> > But I am not sure code in install_pack.cgi is correct .
> >
> > I can read (in install_pack.cgi) the following 'if' statement :
> >
> > if (!&is_package($pfile)){
> > ### code for unpack rpm ###
> >
> > }
> >
> > but with this condition, any jpeg files or others are packages and all
> > rpm are not recognised as rpm packages ...
> >
> > has Someone noticed that ???
>
> That is OK I think .. it tries to gunzip the file afterwards in case it
> is an .rpm.gz , and if that fails displays an error to the user. Are you
> having some problem with this when installing a particular package?
>
> - Jamie
sorry,
another error ...
my archive rpm.gz is wrong!
code is correct
thanks for all.
christophe PERA.
|