return rc;
}
+static void setNotifyFlag(struct rpmInstallArguments_s * ia,
+ rpmts ts)
+{
+ int notifyFlags, xx;
+
+ notifyFlags = ia->installInterfaceFlags | (rpmIsVerbose() ? INSTALL_LABEL : 0 );
+ xx = rpmtsSetNotifyCallback(ts,
+ rpmShowProgress, (void *) ((long)notifyFlags));
+}
+
struct rpmEIU {
Header h;
FD_t fd;
vsflags = setvsFlags(ia);
ovsflags = rpmtsSetVSFlags(ts, (vsflags | RPMVSF_NEEDPAYLOAD));
- { int notifyFlags;
- notifyFlags = ia->installInterfaceFlags | (rpmIsVerbose() ? INSTALL_LABEL : 0 );
- xx = rpmtsSetNotifyCallback(ts,
- rpmShowProgress, (void *) ((long)notifyFlags));
- }
+ setNotifyFlag(ia, ts);
if ((eiu->relocations = relocations) != NULL) {
while (eiu->relocations->oldPath)
(void) rpmtsSetFlags(ts, ia->transFlags);
#ifdef NOTYET /* XXX no callbacks on erase yet */
- { int notifyFlags, xx;
- notifyFlags = ia->installInterfaceFlags | (rpmIsVerbose() ? INSTALL_LABEL : 0 );
- xx = rpmtsSetNotifyCallback(ts,
- rpmShowProgress, (void *) ((long)notifyFlags));
- }
+ setNotifyFlag(ia, ts);
#endif
qfmt = rpmExpand("%{?_query_all_fmt}\n", NULL);