mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Update cleanup script to remove non-unsupported files.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
701186ad05
commit
bbc05414cf
2 changed files with 16 additions and 1 deletions
|
@ -25,7 +25,7 @@ exec('ls ' . INCOMING_DIR, $files);
|
|||
$count = 0;
|
||||
|
||||
foreach ($files as $pkgname) {
|
||||
if (!package_exists($pkgname)) {
|
||||
if (package_location($pkgname) != 'unsupported') {
|
||||
echo 'Removing ' . INCOMING_DIR . "$pkgname\n";
|
||||
system('rm -r ' . INCOMING_DIR . $pkgname);
|
||||
$count++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue