narglist[0]= scriptexec;
if (setenv(MAINTSCRIPTPKGENVVAR, pkg, 1) ||
setenv(MAINTSCRIPTDPKGENVVAR, PACKAGE_VERSION, 1))
- ohshite(_("unable to setenv for maint script"));
+ ohshite(_("unable to setenv for maintainer script"));
execv(scriptexec,(char * const *)narglist);
ohshite(desc,name);
}
scriptpath= pkgadminfile(pkg,scriptname);
arglist= vbuildarglist(scriptname,ap);
- sprintf(buf,"%s script",description);
+ sprintf(buf, _("installed %s script"), description);
if (stat(scriptpath,&stab)) {
if (errno == ENOENT) {
scriptname);
return 0;
}
- ohshite(_("unable to stat installed %s script `%.250s'"),description,scriptpath);
+ ohshite(_("unable to stat %s `%.250s'"), buf, scriptpath);
}
do_script(pkg->name, scriptname, scriptpath, &stab, arglist, _("unable to execute %s"), buf, 0);
va_start(ap,cidirrest);
arglist= vbuildarglist(scriptname,ap);
va_end(ap);
- sprintf(buf,"%s script",description);
+ sprintf(buf, _("new %s script"), description);
strcpy(cidirrest,scriptname);
if (stat(cidir,&stab)) {
debug(dbg_scripts,"maintainer_script_new nonexistent %s `%s'",scriptname,cidir);
return 0;
}
- ohshite(_("unable to stat new %s script `%.250s'"),description,cidir);
+ ohshite(_("unable to stat %s `%.250s'"), buf, cidir);
}
- do_script(pkgname, scriptname, cidir, &stab, arglist, _("unable to execute new %s"), buf, 0);
+ do_script(pkgname, scriptname, cidir, &stab, arglist,
+ _("unable to execute %s"), buf, 0);
post_script_tasks();
return 1;