[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

anonftpsync update



Hello,

I made two little modifications to the official anonftpsync script.

The original section I modified is:
<snip>
for ARCH in $ARCH_EXCLUDE; do
        EXCLUDE=$EXCLUDE"\
                --exclude binary-$ARCH/ \
                --exclude disks-$ARCH/ \
                --exclude installer-$ARCH/ \
                --exclude Contents-$ARCH.gz \
                --exclude Contents-$ARCH.diff/ \
                --exclude *_$ARCH.deb \
                --exclude *_$ARCH.udeb "
        if [ "$ARCH" == "source" ]; then
                SOURCE_EXCLUDE="\
                --exclude *.tar.gz \
                --exclude *.diff.gz \
                --exclude *.dsc "
        fi
done
</snip>

Here the modifications:
<snip>
for ARCH in $ARCH_EXCLUDE; do
        EXCLUDE=$EXCLUDE"\
                --exclude binary-$ARCH/ \
                --exclude disks-$ARCH/ \
                --exclude installer-$ARCH/ \
                --exclude Contents-$ARCH.gz \
                --exclude Contents-$ARCH.diff/ \
                --exclude arch-$ARCH.files \
                --exclude arch-$ARCH.list.gz \
                --exclude *_$ARCH.deb \
                --exclude *_$ARCH.udeb "
        if [ "$ARCH" == "source" ]; then
                EXCLUDE=$EXCLUDE"\
                --exclude source/ "
                SOURCE_EXCLUDE="\
                --exclude *.tar.gz \
                --exclude *.diff.gz \
                --exclude *.dsc "
        fi
done
</snip>

I added --exclude arch-$ARCH.files and --exclude arch-$ARCH.list.gz to
exclude the corresponding files inside "debian/indices", and the two
lines into the if condition so that the "source" directories inside
debian/dists/release/section directories are not created.

I attach the modified script.
Feel free to add it to the mirror site if you think so; tell me if you
have remarks on it.

Bye

Franco

Attachment: anonftpsync
Description: application/shellscript


Reply to: