Commit 2bc95268 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repo index: add x86_64-i586 support

parent e1307339
......@@ -34,7 +34,7 @@ get_archlist()
# https://www.altlinux.org/APT_%D0%B2_ALT_Linux/CreateRepository
__epm_repoindex_alt()
{
local archlist="i586 x86_64 aarch64 noarch"
local archlist="i586 x86_64 x86_64-i586 aarch64 noarch"
local init=''
if [ "$1" = "--init" ] ; then
......
......@@ -42,6 +42,7 @@ __epm_repo_pkgadd_alt()
# arch hack (it is better to repack firstly)
[ "$arch" = "i686" ] && arch="i586"
[ "$arch" = "i386" ] && arch="i586"
[ -d $REPO_DIR/$arch/RPMS.$REPO_NAME ] || fatal
epm checkpkg "$1" || fatal
cp -v "$1" $REPO_DIR/$arch/RPMS.$REPO_NAME || fatal
shift
......@@ -71,6 +72,7 @@ __epm_repo_pkgdel_alt()
while [ -s "$1" ] ; do
for arch in $archlist ; do
local rd="$REPO_DIR/$arch/RPMS.$REPO_NAME"
[ -d $REPO_DIR/$arch/RPMS.$REPO_NAME ] || continue
for i in $rd/$1* ; do
[ "$1" = "$(epm print name for package $i)" || continue
rm -v $rd/$1*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment