[asterisk-bugs] [Asterisk 0015570]: [patch] install_prereq does not work on Debian 5

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jul 24 09:35:56 CDT 2009


The following issue has been RESOLVED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15570 
====================================================================== 
Reported By:                mvanbaak
Assigned To:                mvanbaak
====================================================================== 
Project:                    Asterisk
Issue ID:                   15570
Category:                   General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-07-24 04:04 CDT
Last Modified:              2009-07-24 09:35 CDT
====================================================================== 
Summary:                    [patch] install_prereq does not work on Debian 5
Description: 
the install_prereq script does not work anymore on Debian 5
Tested with a clean install using the netinstaller iso.
This is because the dpkg-query -W command will return 'no such package'
for almost all the packages.

This patch replaces this command with aptitude.
I also replaced the apt-get to install the pakages with aptitude because
this is now the preferred command is Debian.
====================================================================== 

---------------------------------------------------------------------- 
 (0108170) svnbot (reporter) - 2009-07-24 09:35
 https://issues.asterisk.org/view.php?id=15570#c108170 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 208542

U   trunk/contrib/scripts/install_prereq

------------------------------------------------------------------------
r208542 | mvanbaak | 2009-07-24 09:35:54 -0500 (Fri, 24 Jul 2009) | 13
lines

use aptitude for debian based systems

The function to check wether we need to install packages was using
dpkg-query which was gives wrong output on Debian 5

Also, the apt-get has been replaced with aptitude because aptitude
is now the preferred way to handle packages on Debian

(closes issue https://issues.asterisk.org/view.php?id=15570)
Reported by: mvanbaak
Patches:
      2009072400_installprereq-aptitude.diff uploaded by mvanbaak (license
7)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=208542 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-24 09:35 svnbot         Checkin                                      
2009-07-24 09:35 svnbot         Note Added: 0108170                          
2009-07-24 09:35 svnbot         Status                   feedback => assigned
2009-07-24 09:35 svnbot         Assigned To               => mvanbaak        
2009-07-24 09:35 svnbot         Status                   assigned => resolved
2009-07-24 09:35 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list