Mail Archives: cygwin-developers/2001/06/29/22:20:20
This is a multi-part message in MIME format.
------=_NextPart_000_038F_01C1015F.56488A40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Applying this should fix my boo boo.
Rob
----- Original Message -----
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: <cygwin-developers AT cygwin DOT com>; <cygwin-patches AT cygwin DOT com>
Sent: Saturday, June 30, 2001 12:16 PM
Subject: Re: hierarchy in setup (category stuff)
>
> ----- Original Message -----
> From: "Christopher Faylor" <cgf AT redhat DOT com>
> To: <cygwin-developers AT cygwin DOT com>; <cygwin-patches AT cygwin DOT com>
> Sent: Saturday, June 30, 2001 12:13 PM
> Subject: Re: hierarchy in setup (category stuff)
>
>
> > On Sat, Jun 30, 2001 at 12:02:24PM +1000, Robert Collins wrote:
> > >Michael,
> > > I think I trashed some of your src related patches, CVS didn't
report
> > >any errors merging, but I just have this nasty suspicion.
> >
> > You did. All of my changes are gone, too.
> >
> > I'd like to revert CVS to pre-your-change and try again. Is that ok?
>
> It's possibly easier just to grab the diffs that you committed before and
> apply those again. (ie cvs rdiff -r 2.33 -r 2.35 choose.cc )
>
> >
> > cgf
> >
>
>
------=_NextPart_000_038F_01C1015F.56488A40
Content-Type: application/octet-stream;
name="oops.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="oops.patch"
Index: choose.cc=0A=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
RCS file: /cvs/src/src/winsup/cinstall/choose.cc,v=0A=
retrieving revision 2.36=0A=
diff -u -p -r2.36 choose.cc=0A=
--- choose.cc 2001/06/30 01:37:55 2.36=0A=
+++ choose.cc 2001/06/30 02:19:23=0A=
@@ -100,9 +100,11 @@ isinstalled (Package *pkg, int trust)=0A=
static void=0A=
set_action (Package *pkg, bool preinc)=0A=
{=0A=
- pkg->srcpicked =3D 0;=0A=
if (!pkg->action || preinc)=0A=
- ((int) pkg->action)++;=0A=
+ {=0A=
+ ((int) pkg->action)++;=0A=
+ pkg->srcpicked =3D 0;=0A=
+ }=0A=
=0A=
/* Exercise the action state machine. */=0A=
for (;; ((int) pkg->action)++)=0A=
@@ -145,21 +147,28 @@ set_action (Package *pkg, bool preinc)=0A=
case ACTION_UNINSTALL:=0A=
if (pkg->installed)=0A=
return;=0A=
+ break;=0A=
case ACTION_REDO:=0A=
- if (pkg->installed)=0A=
+ if (pkg->installed && pkg->info[pkg->installed_ix].install_exists)=0A=
{=0A=
pkg->trust =3D pkg->installed_ix;=0A=
return;=0A=
}=0A=
+ break;=0A=
case ACTION_SRC_ONLY:=0A=
- if (pkg->installed && pkg->installed->source_exists)=0A=
- return;=0A=
+ if (pkg->info[pkg->trust].source_exists)=0A=
+ {=0A=
+ pkg->srcpicked =3D 1;=0A=
+ return;=0A=
+ }=0A=
break;=0A=
case ACTION_SAME_LAST:=0A=
pkg->action =3D ACTION_SKIP;=0A=
/* Fall through intentionally */=0A=
case ACTION_SKIP:=0A=
- return;=0A=
+ if (!pkg->installed || =
!pkg->info[pkg->installed_ix].install_exists)=0A=
+ return;=0A=
+ break;=0A=
default:=0A=
log (0, "should never get here %d\n", pkg->action);=0A=
}=0A=
------=_NextPart_000_038F_01C1015F.56488A40--
- Raw text -