During FTP installs, when installing Postfix as an alternate MTA, the
install of Postfix fails since Postfix 1 is picked from INDEX instead of Postfix 2. The problem is that the package_add function matches multiple Postfix packages and then installs a "random" version (the last one found in INDEX). This does not occur with a CD-ROM install since there is only one Postfix package on the CD-ROM. The correct solution to this would be to check the origin field from INDEX instead of the package name, but due to the way sysinstall is made that is not trivial, so instead work around the problem by hard-coding the Postfix major and minor revision (for the current stable version) to install directly into the package_add call. PR: misc/65426 Reported by: Harold Kachelmyer <bugs@princessharold.net> Approved by: trhodes
This commit is contained in:
parent
11b6a55518
commit
7226ecc0ce
@ -1129,7 +1129,7 @@ configMTAPostfix(dialogMenuItem *self)
|
||||
msgError("Error setting the enviroment variable POSTFIX_DEFAULT_MTA: %s (%u)",
|
||||
strerror(errno), errno);
|
||||
|
||||
ret = package_add("postfix");
|
||||
ret = package_add("postfix-2.1");
|
||||
unsetenv("POSTFIX_DEFAULT_MTA");
|
||||
|
||||
if(DITEM_STATUS(ret) == DITEM_FAILURE) {
|
||||
|
@ -1129,7 +1129,7 @@ configMTAPostfix(dialogMenuItem *self)
|
||||
msgError("Error setting the enviroment variable POSTFIX_DEFAULT_MTA: %s (%u)",
|
||||
strerror(errno), errno);
|
||||
|
||||
ret = package_add("postfix");
|
||||
ret = package_add("postfix-2.1");
|
||||
unsetenv("POSTFIX_DEFAULT_MTA");
|
||||
|
||||
if(DITEM_STATUS(ret) == DITEM_FAILURE) {
|
||||
|
Loading…
Reference in New Issue
Block a user