4 archive_tree=.archive/PLD
6 ftp_dir=~ftp/pld/dists/th
14 test -n "$other_tree" || die 'specify other tree, ex: 2015/PLD'
16 archive_dir=$ftp_dir/$archive_tree/SRPMS/.metadata
17 other_dir=$ftp_dir/$other_tree/SRPMS/.metadata
19 test -d "$archive_dir" || die '$archive_dir not a dir'
20 test -d "$other_dir" || die '$other_dir not a dir'
23 for f in $archive_dir/*.info; do
25 if [ -f "$other_dir/$fn" ]; then
31 remove_pkgs=$(match_pkgs)
32 test -n "$remove_pkgs" || die "nothing matched"
33 c=$(echo "$remove_pkgs" | wc -l)
34 echo >&2 "$c packages to remove from $archive_dir. ctrl-c to abort"
37 echo >&2 pfa-rmpkg $archive_tree $remove_pkgs
38 pfa-rmpkg $archive_tree $remove_pkgs