This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] inform user if any postinstall script failed to run


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]