Commit b5d4f013 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: forbid repack for original and already repacked packages (ALT bug 56355)

parent e87eda74
......@@ -171,6 +171,14 @@ __epm_repack_single()
case $PKGFORMAT in
rpm)
load_helper epm-repack-rpm
if [ "$BASEDISTRNAME" = "alt" ] ; then
if epm status --original "$pkg" ; then
fatal_warning "Repacking package $pkg from ALT repository is dangerous and forbidden (see https://bugzilla.altlinux.org/56355)."
fi
if epm status --repacked "$pkg" ; then
fatal_warning "Repacking already repacked package $pkg is uselessly."
fi
fi
__epm_repack_to_rpm "$pkg" || return
;;
deb)
......
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