#!/bin/sh
mkdir /home/repo/disk
echo local > /home/repo/disk/local

mkdir /home/repo/i586/RPMS
cp /var/cache/apt/archives/*i586* /home/repo/i586/RPMS

mkdir /home/repo/noarch/RPMS
cp /var/cache/apt/archives/*noarch* /home/repo/noarch/RPMS

cd /home/repo/i586/RPMS
ln -s  RPMS RPMS.local

cd ../..
cd noarch
ln -s  RPMS RPMS.local

genbasedir --topdir=/home/repo i586 local

genbasedir --topdir=/home/repo noarch local