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

Re: Segfault running rpmtsProblems()...



On Fri, Apr 11, 2003 at 11:14:16AM -0400, James Olin Oden wrote:
> On Thu, 10 Apr 2003, Jeff Johnson wrote:
> 
> > You can't install a package without a notify call back, as the
> > package is opened (yes, again) in the call back, and you're not
> > gonna install diddly w/o reading a package.
> >
> I completely undersand now, after I took some looking at that callback.
> I just curious, why does the callback open the package?

So that anaconda can mount the next cd while transaction is in progress.
Sick, eh?

>  
> I still have a problem, though.  I changed my code to call your callback
> and it would just hang.  So then I copied your callback, renamed it and
> added debug code to display what it was being called as each time, and 
> this is the output I get:
> 
> 	what:  RPMCALLBACK_TRANS_START
> 	what:  RPMCALLBACK_TRANS_PROGRESS
> 	what:  RPMCALLBACK_TRANS_STOP
> 	Installing /root/RPM2-0.62/test-rpm-1.0-1.noarch.rpm
> 	what:  RPMCALLBACK_INST_OPEN_FILE
> 	Installing /root/RPM2-0.62/test-rpm-1.0-1.noarch.rpm
> 	what:  RPMCALLBACK_INST_START
> 	Installing /root/RPM2-0.62/test-rpm-1.0-1.noarch.rpm
> 	what:  RPMCALLBACK_INST_PROGRESS
> 	Installing /root/RPM2-0.62/test-rpm-1.0-1.noarch.rpm
> 	what:  RPMCALLBACK_INST_PROGRESS
> 

The callback is useless for anything other than pushing progress bars.

Do
	rpmIncreaseVerbosity();
	rpmIncreaseVerbosity();
(same as -vv) and watch stderr to see what's happening.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC





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