CDB template generation script

Typical usage

Prepare config file test.cfg on machine which has access to desired repositories:

output = pro_software_packages_defaults_slc3.tpl
domain_order 1 = linux
domain_order 2 = glite
domain_order 3 = lcg
domain_order 4 = swrep
dir linux /afs/cern.ch/project/linux/cern/slc30X/i386/RedHat/RPMS
dir linux /afs/cern.ch/project/linux/cern/slc30X/i386/extras/RPMS
dir linux /afs/cern.ch/project/linux/cern/updates/slc30X/i386/RPMS
dir linux /afs/cern.ch/project/linux/onlycern/slc30X/i386/RPMS
dir glite /afs/cern.ch/project/egee/gLite/APT/R3.0/rhel30/RPMS.externals
dir glite /afs/cern.ch/project/egee/gLite/APT/R3.0/rhel30/RPMS.Release3.0
dir glite /afs/cern.ch/project/egee/gLite/APT/R3.0/rhel30/RPMS.updates
dir lcg /afs/cern.ch/project/gd/www/gis/apt/HEAD.new/sl3/en/i386/RPMS.lcg_sl3
dir lcg /afs/cern.ch/project/gd/www/gis/apt/HEAD.new/sl3/en/i386/RPMS.lcg_sl3.security
dir lcg /afs/cern.ch/project/gd/www/gis/apt/HEAD.new/sl3/en/i386/RPMS.lcg_sl3.updates
dir swrep http://swrepsrv.cern.ch/yum/CERN_CC/i386_slc4/
architecture_order 1 = noarch
architecture_order 2 = i686
architecture_order 3 = i386
exclude athlon

Run command to fill DB stored in test.db with data about all packages in directories specified in configuration file:

/afs/cern.ch/project/linux/dev/newbuildsys/fill.py -c test.cfg -f test.db -p

Run command to save "default packages list" to files specified in configuration file:

/afs/cern.ch/project/linux/dev/newbuildsys/fill.py -c test.cfg -f test.db -l

-- LeszekGrzanka - 21 Sep 2007

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2007-09-21 - LeszekGrzanka
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LinuxSupport All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback