[asterisk-bugs] [Asterisk 0013388]: [patch] Prompt for immediate removal of modules not installed by current version of Asterisk

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Oct 14 16:24:37 CDT 2008


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13388 
====================================================================== 
Reported By:                putnopvut
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   13388
Category:                   Core/BuildSystem
Reproducibility:            N/A
Severity:                   feature
Priority:                   low
Status:                     resolved
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 140299 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 won't fix
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-08-27 17:06 CDT
Last Modified:              2008-10-14 16:24 CDT
====================================================================== 
Summary:                    [patch] Prompt for immediate removal of modules not
installed by current version of Asterisk
Description: 
When switching versions of Asterisk, you will likely have old modules built
from a previous installation. I typically will just blow away my modules
directory and then re-run `make install` after.

seanbright on #asterisk-dev brought up the idea of prompting for removal
of modules at installation time, so I made a slight change to the Makefile
to do this.

Since my shell-scripting skills don't even come near my C skills, I am
putting this on the bugtracker for review and suggestions for
improvements.

Here are some of the design decisions explained:
 * No input indicates to remove the modules. I did this since it is the
most
   likely choice.
 * [yY]* is the only other input that will remove modules. As qwell
pointed out
   to me, this way, if someone accidentally types 'm' instead of 'n' to
indicate
   they don't wish to delete the modules, then it won't cause a problem.
Of
   course, this also means that inputs like "yellow" and "YOW" will cause
   removal of files
 * I used the -i flag for rm so that a user could choose to keep certain
modules
   available, such as valid third-party modules.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-14 16:24 putnopvut      Status                   confirmed => resolved
2008-10-14 16:24 putnopvut      Resolution               open => won't fix   
2008-10-14 16:24 putnopvut      Assigned To               => putnopvut       
======================================================================




More information about the asterisk-bugs mailing list