Changeset 3721 for scripts/repository


Ignore:
Timestamp:
05/20/08 12:41:28 (6 years ago)
Author:
alanbach-guest
Message:
  • Updated to cover source files too
Location:
scripts/repository
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/repository/filter-continent.bash

    r3028 r3721  
    55# 
    66# Created: 2008-02-01 10:57 +330 GMT 
    7 # Updated: 2008-02-01 16:47 +330 GMT 
     7# Updated: 2008-05-20 12:28 +330 GMT 
    88# 
    99 
     
    2525fi 
    2626 
    27 list=`find ./pool/ -type f | grep .deb$ | awk 'BEGIN{FS="_"}{print $1}' | xargs -n1 basename | sort -u` 
     27# Remove debs first, keep lsb, selinux and base-files, needed for debootstrap at the moment 
     28list=`find ./pool/ -type f | grep .deb$ | awk 'BEGIN{FS="_"}{print $1}' | grep -v selinux | grep -v lsb | grep -v base-files | xargs -n1 basename | sort -u` 
    2829 
    2930if [ ! -d "${contnt_repo}" ]; then 
     
    3435fi 
    3536 
    36 # Remove 
     37reprepro -Vb . remove ${distro} ${list} 
     38 
     39# Remove  sources then, keep lsb, selinux and base-files, needed for debootstrap at the moment 
     40list=`find ./pool/ -type f | grep .orig.tar.gz$ | awk 'BEGIN{FS="_"}{print $1}' | grep -v selinux | grep -v lsb | grep -v base-files | xargs -n1 basename | sort -u` 
     41 
     42if [ ! -d "${contnt_repo}" ]; then 
     43    echo "Continent repository does not exist." 
     44    exit 
     45else 
     46    cd ${contnt_repo} 
     47fi 
     48 
    3749reprepro -Vb . remove ${distro} ${list} 
    3850 
     
    4052../../sign 
    4153 
    42  
    43  
  • scripts/repository/repo-clean-up.bash

    r3028 r3721  
    44# 
    55# Created: 2008-01-26 14:57 +330 GMT 
    6 # Updated: 2008-02-01 14:43 +330 GMT 
     6# Updated: 2008-05-20 12:21 +330 GMT 
    77 
    88if [ -z "${1}" ]; then 
     
    2222fi 
    2323 
     24# Remove debs first 
    2425list=`find ./pool/ -type f | grep .deb$ | awk 'BEGIN{FS="_"}{print $1}' | xargs -n1 basename | sort -u` 
     26reprepro -Vb . remove ${distro} ${list} 
    2527 
    26 # Remove 
     28# Remove sources then 
     29list=`find ./pool/ -type f | grep .orig.tar.gz$ | awk 'BEGIN{FS="_"}{print $1}' | xargs -n1 basename | sort -u` 
    2730reprepro -Vb . remove ${distro} ${list} 
    2831 
     
    3033../../sign 
    3134 
    32  
Note: See TracChangeset for help on using the changeset viewer.