Mam własne repozytorium, wcześniej skanowałem jest poprzez:
Kod: Zaznacz cały
apt-ftparchive
Może na początku skrypt, który używam do budowy i dodania pakietu:
Kod: Zaznacz cały
GNUPGHOME="/home/ftp/debian/conf/.gnupg"
REPREPRO_BASE_DIR="/home/ftp/debian"
usage(){ #{{{
echo "Usage: $(basename $0 all|i386|amd64)"
} # end of function usage }}}
if [ "$1" == all ]; then
dpkg-buildpackage -pgpg $GPGOPT
dpkg-buildpackage -pgpg $GPGOPT -aamd64
elif [ "$1" == i386 ]; then
dpkg-buildpackage -pgpg $GPGOPT
elif [ "$1" == amd64 ]; then
dpkg-buildpackage -pgpg $GPGOPT -aamd64
else
usage
exit 1
fi
if [ "$1" == all ]; then
reprepro --ignore=wrongdistribution --ignore=undefinedtarget -v includedeb stable ../*.deb
elif [ "$1" == i386 ]; then
reprepro -A i386 --ignore=wrongdistribution --ignore=undefinedtarget -v includedeb stable ../*.deb
elif [ "$1" == amd64 ]; then
reprepro -A amd64 --ignore=wrongdistribution --ignore=undefinedtarget -v includedeb stable ../*.deb
else
usage
exit 1
fi
Kod: Zaznacz cały
../vim-bash-support_3.3-1_i386.deb: component guessed as 'main'
ERROR: '../vim-bash-support_3.3-1_i386.deb' cannot be included as 'pool/main/v/vim-bash-support/vim-bash-support_3.3-1_i386.deb'.
Already existing files can only be included again, if they are the same, but:
md5 expected: 13fc05e7483b94bff403dc179c20ada1, got: 43b305976f23dbb996b35d56cbeb6673
sha1 expected: 4c70183d29d0150a197a4f396abe05d0db5ab438, got: 6fab04080c4327dc905f13179e9d92c65a5a0641
sha256 expected: f5bfb9578ec39d215eab6ae46b0db13a205398899a03c6fb2aebe57fe0264036, got: f8c93f17c0f66e3d7f4038d1f11867382ce82ffe115094683e97d4342ff54711
Exporting indices...
There have been errors!
Kod: Zaznacz cały
Version: 5.0.4
Components: main contrib non-free
Origin: Debian
Label: Debian
Architectures: i386 amd64
Suite: stable
Description: Repozytorium
DebIndices: Packages Release . .gz .bz2
UDebIndices: Packages . .gz .bz2
DscIndices: Sources Release . .gz .bz2
Codename: lenny
Kod: Zaznacz cały
man reprepro
Kod: Zaznacz cały
reprepro remove
Kod: Zaznacz cały
reprepro includedeb
Przy okazji, jak w reprepro mogę wymusić pozostawienie starych wersji? Opcje --keep* raczej dotyczą pozostawienia plików deb w katalogu pool. Bo:
Kod: Zaznacz cały
reprepro list