Skip to content

Commit

Permalink
Add safety net
Browse files Browse the repository at this point in the history
  • Loading branch information
donovank authored and Mrfai committed Jan 31, 2020
1 parent cbd9925 commit 5094fd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/fai-mirror
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,10 @@ Origin: fai-mirror
EOF

# maybe using reprepro pulls it's possible to move instead of copy the packages
reprepro -b $mirrordir includedeb $bponame $archivedir/*~bpo[0-9]*+[0-9-]*_*.deb
rm -f $archivedir/*~bpo[0-9]*+[0-9-]*_*.deb
if ls "$archivedir/*~bpo[0-9]*+[0-9-]*_*.deb" >/dev/null 2>&1; then
reprepro -b $mirrordir includedeb $bponame $archivedir/*~bpo[0-9]*+[0-9-]*_*.deb
rm -f $archivedir/*~bpo[0-9]*+[0-9-]*_*.deb
fi
fi

# allow package without the .deb suffix. At least they must start with a char and contain an underscore or hyphen
Expand Down

0 comments on commit 5094fd6

Please sign in to comment.