Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [PATCH] when emerge restarts itself sometimes it fails (bug 117988)
Date: Mon, 30 Jan 2006 20:50:52
Message-Id: 43DE7D54.7080407@gentoo.org
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 http://bugs.gentoo.org/show_bug.cgi?id=117988
5
6 Honestly, I don't really understand the code that emerge uses to restart itself. Basically, the current behavior is to restart itself with a filtered version of it's original arguments. It seems to be error prone and I don't see how it can handle all of the necessary cases.
7
8 The attached patch uses the existing "--resume" functionality to solve the problem. The new argument list is generated from "myopts" and selected "badlongopts" are
9 filtered out. I've been using this patch locally with no issues. Feedback would be appreciated.
10
11 Zac
12 -----BEGIN PGP SIGNATURE-----
13 Version: GnuPG v1.4.2 (GNU/Linux)
14
15 iD8DBQFD3n1U/ejvha5XGaMRAgTGAKDHAQX1KylV3ySzSszz/5y0vFpppACgut85
16 igndUxDitsV5L05aISFxYi0=
17 =a5C4
18 -----END PGP SIGNATURE-----

Attachments

File name MIME type
emerge-restart-resume.patch text/x-patch