Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 125002 Details for
Bug 185231
Elog MailSubject Extra Variables
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that correctly sets ACTION=unmerged
elog-mail-action.diff (text/plain), 1002 bytes, created by
Marius Mauch (RETIRED)
on 2007-07-16 09:43:36 UTC
(
hide
)
Description:
Patch that correctly sets ACTION=unmerged
Filename:
MIME Type:
Creator:
Marius Mauch (RETIRED)
Created:
2007-07-16 09:43:36 UTC
Size:
1002 bytes
patch
obsolete
>Index: mod_mail.py >=================================================================== >--- mod_mail.py (revision 7269) >+++ mod_mail.py (working copy) >@@ -16,6 +16,21 @@ > mysubject = mysubject.replace("${PACKAGE}", cpv) > mysubject = mysubject.replace("${HOST}", socket.getfqdn()) > >+ # look at the phases listed in our logentries to figure out what action was performed >+ action = "merged" >+ for phase in logentries.keys(): >+ # if we found a *rm phase assume that the package was unmerged >+ if phase in ["postrm", "prerm"]: >+ action = "unmerged" >+ # if we think that the package was unmerged, make sure there was no unexpected >+ # phase recorded to avoid misinformation >+ if action == "unmerged": >+ for phase in logentries.keys(): >+ if phase not in ["postrm", "prerm", "other"]: >+ action = "unknown" >+ >+ mysubject = mysubject.replace("${ACTION}", action) >+ > mymessage = portage_mail.create_message(myfrom, myrecipient, mysubject, fulltext) > portage_mail.send_mail(mysettings, mymessage) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 185231
:
124990
| 125002