Commit 19ee114a authored by Vitaly Lipatov's avatar Vitaly Lipatov

backported to M60P as 1.1.4-alt0.M60P.1 (with rpmbph script)

parents b1a0ca36 db0f10bf
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
epm_autoclean() epm_autoremove()
{ {
case $PMTYPE in case $PMTYPE in
#apt-rpm) #apt-rpm)
......
...@@ -19,18 +19,18 @@ ...@@ -19,18 +19,18 @@
check_rpm_integrity() check_rpm_integrity()
{ {
a= rpm --checksig $@ >/dev/null docmd rpm --checksig $@
} }
check_deb_integrity() check_deb_integrity()
{ {
# FIXME: debsums -ca package ? # FIXME: debsums -ca package ?
a= dpkg --contents $@ >/dev/null docmd dpkg --contents $@
} }
check_bz2_integrity() check_bz2_integrity()
{ {
a= bunzip -t $1 >/dev/null docmd bunzip -t $1
} }
check_tbz_integrity() check_tbz_integrity()
...@@ -40,7 +40,7 @@ check_tbz_integrity() ...@@ -40,7 +40,7 @@ check_tbz_integrity()
check_gz_integrity() check_gz_integrity()
{ {
a= gunzip -t $1 >/dev/null docmd gunzip -t $1
} }
check_tgz_integrity() check_tgz_integrity()
...@@ -50,12 +50,22 @@ check_tgz_integrity() ...@@ -50,12 +50,22 @@ check_tgz_integrity()
check_zip_integrity() check_zip_integrity()
{ {
a= unzip -t $1 >/dev/null docmd unzip -t $@
}
check_rar_integrity()
{
docmd unrar t $@
} }
check_xz_integrity() check_xz_integrity()
{ {
a= xz -t $1 >/dev/null docmd xz -t $1
}
check_7z_integrity()
{
docmd 7z t $1
} }
check_exe_integrity() check_exe_integrity()
......
...@@ -57,6 +57,9 @@ epm_install_names() ...@@ -57,6 +57,9 @@ epm_install_names()
apt-rpm|apt-dpkg) apt-rpm|apt-dpkg)
sudocmd apt-get install $@ sudocmd apt-get install $@
return ;; return ;;
deepsolver-rpm)
sudocmd ds-install $@
return ;;
urpm-rpm) urpm-rpm)
sudocmd urpmi $@ sudocmd urpmi $@
return ;; return ;;
......
...@@ -49,6 +49,9 @@ epm_remove_names() ...@@ -49,6 +49,9 @@ epm_remove_names()
apt-rpm|apt-dpkg) apt-rpm|apt-dpkg)
sudocmd apt-get remove --purge $@ sudocmd apt-get remove --purge $@
return ;; return ;;
deepsolver-rpm)
sudocmd ds-remove $@
return ;;
urpm-rpm) urpm-rpm)
sudocmd urpme $@ sudocmd urpme $@
return ;; return ;;
......
...@@ -34,6 +34,9 @@ case $PMTYPE in ...@@ -34,6 +34,9 @@ case $PMTYPE in
apt-rpm) apt-rpm)
docmd apt-repo list docmd apt-repo list
;; ;;
deepsolver-rpm)
docmd ds-conf
;;
apt-dpkg) apt-dpkg)
showcmd cat /etc/apt/sources.list* showcmd cat /etc/apt/sources.list*
print_apt_sources_list /etc/apt/sources.list /etc/apt/sources.list.d/*.list print_apt_sources_list /etc/apt/sources.list /etc/apt/sources.list.d/*.list
......
...@@ -180,9 +180,19 @@ set_pm_type() ...@@ -180,9 +180,19 @@ set_pm_type()
[ -n "$DISTRVERSION" ] || DISTRVERSION=$($DISTRVENDOR -v) [ -n "$DISTRVERSION" ] || DISTRVERSION=$($DISTRVENDOR -v)
set_target_pkg_env set_target_pkg_env
# override package manager detection result
if [ -n "$FORCEPM" ] ; then
PMTYPE=$FORCEPM
return
fi
case $DISTRNAME in case $DISTRNAME in
ALTLinux|PCLinux) ALTLinux|PCLinux)
CMD="apt-rpm" CMD="apt-rpm"
#which deepsolver 2>/dev/null >/dev/null && CMD=deepsolver-rpm
;;
PCLinux)
CMD="apt-rpm"
;; ;;
Ubuntu|Debian|Mint) Ubuntu|Debian|Mint)
CMD="apt-dpkg" CMD="apt-dpkg"
......
...@@ -49,6 +49,9 @@ case $PMTYPE in ...@@ -49,6 +49,9 @@ case $PMTYPE in
slackpkg) slackpkg)
sudocmd /usr/sbin/slackpkg update sudocmd /usr/sbin/slackpkg update
;; ;;
deepsolver-rpm)
sudocmd ds-update
;;
*) *)
fatal "Do not known update command for $PMTYPE" fatal "Do not known update command for $PMTYPE"
;; ;;
......
# This spec is backported to ALTLinux p6 automatically by rpmbph script. Do not edit it. # This spec is backported to ALTLinux p6 automatically by rpmbph script. Do not edit it.
# #
Name: eepm Name: eepm
Version: 1.1.2 Version: 1.1.4
Release: alt0.M60P.1 Release: alt0.M60P.1
Summary: Etersoft EPM package manager Summary: Etersoft EPM package manager
...@@ -60,9 +60,16 @@ install -m 0644 bash_completion/serv %buildroot%_sysconfdir/bash_completion.d/se ...@@ -60,9 +60,16 @@ install -m 0644 bash_completion/serv %buildroot%_sysconfdir/bash_completion.d/se
%_sysconfdir/bash_completion.d/serv %_sysconfdir/bash_completion.d/serv
%changelog %changelog
* Thu Dec 13 2012 Vitaly Lipatov <lav@altlinux.ru> 1.1.2-alt0.M60P.1 * Tue Jan 01 2013 Vitaly Lipatov <lav@altlinux.ru> 1.1.4-alt0.M60P.1
- backport to ALTLinux p6 (by rpmbph script) - backport to ALTLinux p6 (by rpmbph script)
* Tue Jan 01 2013 Vitaly Lipatov <lav@altlinux.ru> 1.1.4-alt1
- fix broken autoremove: rename epm-autoclean to epm-autoremove
* Thu Dec 27 2012 Vitaly Lipatov <lav@altlinux.ru> 1.1.3-alt1
- add initial deepsolver support
- checkpkg: print checking details, add 7z and rar support
* Thu Dec 13 2012 Vitaly Lipatov <lav@altlinux.ru> 1.1.2-alt1 * Thu Dec 13 2012 Vitaly Lipatov <lav@altlinux.ru> 1.1.2-alt1
- serv: allow additional params for start, stop and try_restart - serv: allow additional params for start, stop and try_restart
- spec: replace @VERSION@ in serv too - spec: replace @VERSION@ in serv too
......
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