summaryrefslogtreecommitdiff
path: root/bin/update (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Convert dumpdb to mmshell and configuration object. Convert htmlformat.pybwarsaw2006-11-041-0/+0
| | | | | | | | | from mm_cfg to the configuration object. In the config object, add an add_runner() function for extending the QRUNNERS variable. De-DOS-line-ending-ify configuration.py
* Massive conversion process so that Mailman can be run from a user specifiedbwarsaw2006-07-081-807/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | configuration file. While the full conversion is not yet complete, everything that seems to be required to run mailmanctl, qrunner, rmlist, and newlist have been updated. Basically, modules should no longer import mm_cfg, but instead they should import Mailman.configuration.config. The latter is an object that's guaranteed to exist, but not guaranteed to be initialized until some top-level script calls config.load(). The latter should be called with the argument to -C/--config which is a new convention the above scripts have been given. In most cases, where mm_cfg.<variable> is used config.<variable> can be used, but the exceptions are where the default value must be available before config.load() is called. Sometimes you can import Mailman.Default and get the variable from there, but other times the code has to be changed to work around this limitation. Take each on a case-by-case basis. Note that the various directories calculated from VAR_PREFIX, EXEC_PREFIX, and PREFIX are now calculated in config.py, not in Defaults.py. This way a configuration file can override the base directories and everything should work correctly. Other changes here include: - mailmanctl, qrunner, and update are switched to optparse and $-strings, and changed to the mmshell architecture - An etc directory has been added to /usr/local/mailman and a mailman.cfg.sample file is installed there. Sites should now edit an etc/mailman.cfg file to do their configurations, although the mm_cfg file is still honored. The formats of the two files are identical. - list_lists is given the -C/--config option - Some coding style fixes in bin/update, but not extensive - Get rid of nested scope hacks in qrunner.py - A start on getting EmailBase tests working (specifically test_message), although not yet complete.
* back port from 2.1.6 / adding new files.tkikuchi2005-08-281-35/+252
|
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-271-1/+1
|
* Disable bin/update on the head of cvs.bwarsaw2004-03-081-1/+3
|
* remove_old_sources(): Utils.rmdirhier() -> shutil.rmtree()bwarsaw2002-12-021-4/+5
|
* Jon Parise's patch to improve the usage() output for the command linebwarsaw2002-10-211-2/+6
| | | | | | and cron scripts. When code/status == 0, there's no error (it's likely --help output) so send that to stdout. Otherwise, it's an error and the output goes to stderr.
* dolist(): Add a check for consistency between the bounce_info andbwarsaw2002-10-201-5/+28
| | | | | | | | | | | | | delivery_status, as necessary for cron/disabled. Some older betas (alphas?) could have a situation where an address is disabled BYBOUNCE but there was no bounce information available. The "fix" is to re-enable such addresses. There should be almost none that fall into this category, but I think it's fine to re-enable them and let the normal bounce processing re-disable them in the normal way. Also, some minor formatting change and whitespace normalization.
* main(): Add Mailman/MailCommandHandler.py{,c} to the list of obsoletebwarsaw2002-05-021-1/+1
| | | | files to remove.
* main(): Get rid of cgi-bin/archives program; it's long been obsolete.bwarsaw2002-03-261-1/+2
|
* dolist(): Update the requests.db database for canonicalized recordbwarsaw2002-03-261-0/+4
| | | | lengths.
* update_qfiles(): Make sure the qfiles/in directory exists before webwarsaw2002-03-051-1/+5
| | | | try to move files into it.
* remove_old_sources(): Add smarts to remove old directories too.bwarsaw2002-02-231-8/+10
| | | | main(): Remove $prefix/Mailman/pythonlib.
* main(): Get rid of the mail/wrapper program; it's been renamed tobwarsaw2001-12-241-1/+1
| | | | mail/mailman.
* In order to make the list alias -> script mapping more consistent,bwarsaw2001-11-301-1/+3
| | | | | | | | | | | | | | | | | | | we've renamed mailcmd to request and mailowner to owner (through some SF-assisted CVS repo magic). We've also moved scripts/auto to contrib/auto since it's an obsolete way of doing the auto-aliasing in Postfix. We need to update mail-wrapper.c for the new list of acceptable script names. Note that there are still two abberations: - messages posted to just `listname' go to the post script - messages posted to listname-admin go to the bounces script The latter, listname-admin may eventually go away. Note that this requires you to regenerate your aliases!
* main(): Add Mailman/Cookie.py{,c} to the list of old sources needingbwarsaw2001-11-201-1/+1
| | | | to be removed.
* Ben Gertzfield's patch to hardcode the path to the python executablebwarsaw2001-09-071-1/+1
| | | | | | | | | | | | | into the script's #! line -- based on --with-python settings, without losing CVS revision history. #! /usr/bin/env python becomes #! @PYTHON@ which gets substituted for in configure.
* update_qfiles(): MM2.0 stores all its qfiles right under the qfiles/bwarsaw2001-08-151-0/+23
| | | | | | | | directory. To "update" any unprocessed message from a MM2.0 system to MM2.1, it should be sufficient to simply move them to qfiles/in and rename them so that they have the received time prepended to the basename (as expected by Switchboard's ...split('+') format).
* dolist(): Remove the settings of the attributes archive_directory andbwarsaw2001-07-261-7/+1
| | | | | | private_archive_file_dir since these have been obsoleted. BAW: I'm not 100% sure the mlist.Save() is still needed.
* All membership related attribute access should use the MemberAdaptorbwarsaw2001-07-191-0/+3
| | | | | | | | | API instead, e.g. GetMembers()/GetDigestMembers() -> getMembers() GetUserSubscribedAddress() -> getMemberCPAddress() GetDeliveryMembers() -> getRegularMemberKeys() GetDigestDeliveryMembers() -> getDigestMemberKeys()
* move_language_templates(): if the TEMPLATE_DIR/gtemplate couldn't bebwarsaw2001-07-031-1/+6
| | | | | opened, then assume it's a new template added with this upgrade, and don't attempt to search for more specific, but identical templates.
* To main changes: add a -f/--force switch, and scan all the templatebwarsaw2001-05-181-63/+166
| | | | | | | | | | | | | | | | | | | | | | subdirectories, removing any more-specific templates where identical more-generic templates are available. Also, more as translatable many more strings. move_language_templates(): Scan $prefix/en/* for template files. Search the following locations for identical templates, and when the md5 checksums match, remove the more-specific versions: lists/<list>/<template> lists/<list>/<template>.prev lists/<list>/en/<template> templates/<template> templates/<template>.prev __main__: Added -f/--force option which says to do the update tasks even if the version numbers indicate a re-install of the same version or a downgrade to a previous version. The former case is useful while developing the alpha versions. The latter can be pretty dangerous.
* Untabification.bwarsaw2001-03-261-5/+5
|
* main(): Include logic to upgrade and convert frombwarsaw2001-03-261-1/+16
| | | | pending_subscriptions.db to pending.db.
* dolist: update archive dirs relative to var_prefix, not prefix.twouters2001-03-021-7/+10
| | | | Fix for SF bug #229794.
* move_language_templates(): Move all the pre-2.1 templates frombwarsaw2001-02-231-0/+30
| | | | | | lists/<listname> to lists/<listname>/en (after creating that subdir). dolist(): call move_language_templates()
* Start of support for i18n; marking of translatable strings.bwarsaw2000-12-071-15/+19
| | | | | Use extended print statement, string methods, and other Python 2.0 features.
* Many people have problems upgrading an active system because they findbwarsaw2000-11-011-37/+68
| | | | | | | | | | | that "make update" hangs. This happens because there are existing locks for some of the lists that are being updated. Instead of an unhelpful hang, we now explicitly lock the lists and report errors if the locks timeout. If any of the locks timeout, we also do not update the last_mailman_version file so that subsequent "make update"'s will work.
* Several changes in support of David Champion's SF patch #101331.bwarsaw2000-09-221-2/+2
| | | | | | | Specifically, calcversions(): Update the comment since the logs dir is now relative to VAR_PREFIX.
* put bulk of logic in main() function and re-arrange things so thebwarsaw2000-06-151-17/+19
| | | | | initial fresh installation still writes the data/last_mailman_version file.
* Jim Tittsler points out that the old watermark file can containbwarsaw2000-04-141-0/+3
| | | | | entries for lists that no longer exist. Skip it if the key isn't in Utils.list_names().
* Prepare for running "make update" automatically. update checks thebwarsaw2000-04-071-23/+50
| | | | | | last installed version against the current installed version and only runs the update stuff if a newer version is being installed. This script could still use a boatload of improvements.
* Added an update to move gate_watermark entries into the list-specificbwarsaw2000-04-071-19/+84
| | | | | | | | | | | | | | | | | usenet_watermark attribute. We get rid of the gate_watermark file once we've updated. Consistency in imports. Try to determine whether the templates/options.html warning needs to be printed or not. It's only printed if we can't determine the last Mailman version and we are not running a fresh install (i.e. there are entries in the logs subdir). Write the current Mailman version (HEX_VERSION) as a hex representation string into the file data/last_mailman_version. This is so the /next/ update can determine what version we're updating from. Lays the groundwork for future updates.
* Update the copyright lines to include the years 1999 & 2000.bwarsaw2000-03-211-0/+16
|
* dolist(): Do l.Unlock() before returning, to avoid the list's openhmeland1999-06-021-0/+2
| | | | lockfiles eating up all the available filehandles.
* Add warning message about the need for a manual step in the updatebwarsaw1999-03-091-0/+9
| | | | process.
* Mostly reformatting to get rid of lines > 78 columns widebwarsaw1999-01-061-14/+14
|
* update_to_10b6 is moved to updatebwarsaw1998-12-221-5/+6
| | | | also remove bin/update_to_10b6 :-)
* Added removal of Mailman/smtplib.py{,c}bwarsaw1998-12-221-2/+5
| | | | | This file will be renamed to bin/update by hacking the CVS repository. You will not see a checkin message for this.
* fixed typo in removing module code.cotton1998-11-061-2/+2
| | | | scott
* update_to_10b6:cotton1998-11-061-3/+42
| | | | | | | | | | | made it remove Archiver.py(c),Hyper*.py(c), pipermail.py(c) from $prefix/Mailman if they're there. made it rename $prefix/templates/<listname>/* to $prefix/<listname> only if wouldn't overwrite anything UPGRADING: changed "you will have to move" to "make update moves", added note about archived articles from before when Archiving stuff was in it's own dir. scott
* A slight reformatting for readabilitybwarsaw1998-11-061-12/+14
|
* fixed minor typosbwarsaw1998-11-061-2/+2
|
* made it so thatcotton1998-11-051-8/+36
| | | | | | | 1) it could be run more than once. 2) it handles files which may be around for some reason but which weren't put there by a previous mailman installation. scott
* changed os.sytem(...find) to use os.path.walk instead, should be morecotton1998-11-051-5/+21
| | | | | portable. scott
* 1) added o-w to the old html archiving chmod's.cotton1998-11-051-31/+42
| | | | | | 2) made it more proactive about lists with public and private archiving mbox's. scott
* moved a misplaced print statement from the previous checkin.cotton1998-11-051-1/+1
| | | | scott
* Removed the private archive directory chmod, as this should be done bycotton1998-11-051-10/+12
| | | | | | | | | make install. made the directory chmod's apply to only old existing html archive directories. made it exit if there aren't any lists, since then it's a fresh install and shouldn't do anything. scott
* Make sure archives/private has the proper permissionsbwarsaw1998-11-051-4/+6
|
* made it do the right thang for lists with both pub and priv mboxcotton1998-11-041-11/+29
| | | | | | archives. made it more robust about creating mbox archive directory. scott