This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [PATCH] inform user if any postinstall script failed to run
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin-apps <cygwin-apps at cygwin dot com>
- Date: Tue, 07 Sep 2010 04:45:15 -0500
- Subject: Re: [PATCH] inform user if any postinstall script failed to run
- References: <4C49D54B.1030900@dronecode.org.uk> <20100723184920.GB9768@ednor.casa.cgf.cx> <4C503DCD.5020508@dronecode.org.uk> <20100728145822.GA9785@ednor.casa.cgf.cx> <4C51AC12.60005@dronecode.org.uk> <4C77F2BA.6030400@dronecode.org.uk>
On Fri, 2010-08-27 at 18:15 +0100, Jon TURNEY wrote:
> + // Remove anything which we just tried to run (so we don't try
> twice)
> + for (i = packages.begin (); i != packages.end (); ++i)
> + {
> + packagemeta & pkg = **i;
> + for (std::vector<Script>::const_iterator j =
> pkg.installed.scripts().begin();
> + j != pkg.installed.scripts().end();
> + j++)
> + {
> + std::vector<Script>::iterator p = find(scripts.begin(),
> scripts.end(), *j);
> + if (p != scripts.end())
> + {
> + scripts.erase(p);
> + }
> + }
> + }
> +
This code does not compile with i686-pc-mingw32 gcc-4.5.1:
postinstall.cc: In function âstd::string
do_postinstall_thread(HINSTANCE__*, HWND__*)â:
postinstall.cc:178:85: error: no matching function for call to
âfind(std::vector<Script>::iterator, std::vector<Script>::iterator,
const Script&)â
Yaakov