Magellan Linux

Diff of /trunk/mage/usr/lib/mage/convert_databases_meta.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1641 by niro, Wed May 2 14:54:21 2007 UTC revision 1642 by niro, Fri Jan 13 18:37:52 2012 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  source /etc/mage.rc.global  : ${MAGERC="/etc/mage.rc"}
 source /etc/mage.rc  
4    
5    source /etc/mage.rc.global
6    source ${MAGERC}
7    source ${MLIBDIR}/mage4.functions.sh
8    source ${MLIBDIR}/smage2.functions.sh
9    
10  #### fixups ####  #### fixups ####
 #MLIBDIR=/home/tjoke/alx-cvs/magellan-src/mage/usr/lib/mage  
 MLIBDIR=/home/rogalla/cvsroot/magellan-src/mage/usr/lib/mage  
 INSTALLDB=/var/db/mage  
11  METADIR=/var/cache/mage/meta  METADIR=/var/cache/mage/meta
12  #################  #################
13    
 source ${MLIBDIR}/mage4.functions.sh  
14  source ${MLIBDIR}/sql_functions.sh  source ${MLIBDIR}/sql_functions.sh
15    
16  die()  die()
# Line 319  convert_install_db() Line 318  convert_install_db()
318   # substitute r from pbuild   # substitute r from pbuild
319   pbuild="${pbuild/r/}"   pbuild="${pbuild/r/}"
320    
321   source ${magefile}   smagesource ${magefile}
322    
323   pcatid=$(sql "select id from categories where pcat='${pcat}'")   pcatid=$(sql "select id from categories where pcat='${pcat}'")
324   sql "insert into packages(   sql "insert into packages(

Legend:
Removed from v.1641  
changed lines
  Added in v.1642