Commit 3b469942 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed 3.57.1

parent 803248ed
...@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR ...@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install # will replaced with /etc/eepm during install
CONFIGDIR=$PROGDIR/../etc CONFIGDIR=$PROGDIR/../etc
EPMVERSION="3.57.0" EPMVERSION="3.57.1"
# package, single (file), pipe, git # package, single (file), pipe, git
EPMMODE="package" EPMMODE="package"
...@@ -759,7 +759,11 @@ assure_tmpdir() ...@@ -759,7 +759,11 @@ assure_tmpdir()
{ {
if [ -z "$TMPDIR" ] ; then if [ -z "$TMPDIR" ] ; then
export TMPDIR="/tmp" export TMPDIR="/tmp"
warning "Your have no TMPDIR defined. Use $TMPDIR as fallback." warning "Your have no TMPDIR defined. Using $TMPDIR as fallback."
fi
if [ ! -d "$TMPDIR" ] ; then
fatal "TMPDIR $TMPDIR does not exist."
fi fi
if [ ! -w "$TMPDIR" ] ; then if [ ! -w "$TMPDIR" ] ; then
...@@ -826,16 +830,17 @@ __epm_remove_tmp_files() ...@@ -826,16 +830,17 @@ __epm_remove_tmp_files()
trap "-" EXIT trap "-" EXIT
[ -n "$DEBUG" ] && return 0 [ -n "$DEBUG" ] && return 0
[ -n "$verbose" ] && info "Removing tmp files on exit ..."
if [ -n "$to_clean_tmp_dirs" ] ; then if [ -n "$to_clean_tmp_dirs" ] ; then
echo "$to_clean_tmp_dirs" | while read p ; do echo "$to_clean_tmp_dirs" | while read p ; do
rm -rf "$p" 2>/dev/null rm $verbose -rf "$p" 2>/dev/null
done done
fi fi
if [ -n "$to_clean_tmp_files" ] ; then if [ -n "$to_clean_tmp_files" ] ; then
echo "$to_clean_tmp_files" | while read p ; do echo "$to_clean_tmp_files" | while read p ; do
rm -f "$p" 2>/dev/null rm $verbose -f "$p" 2>/dev/null
rmdir "$(dirname "$p")" 2>/dev/null
done done
fi fi
...@@ -4833,8 +4838,7 @@ epm_kernel_update() ...@@ -4833,8 +4838,7 @@ epm_kernel_update()
return return
fi fi
assure_exists update-kernel update-kernel 0.9.9 assure_exists update-kernel update-kernel 0.9.9
update_repo_if_needed sudocmd update-kernel $dryrun $(subst_option non_interactive -y) $force $interactive $reinstall $verbose "$@" || return
sudocmd update-kernel $dryrun $(subst_option non_interactive -y) "$@" || return
#docmd epm remove-old-kernels "$@" || fatal #docmd epm remove-old-kernels "$@" || fatal
return ;; return ;;
esac esac
...@@ -5474,7 +5478,7 @@ __epm_pack() ...@@ -5474,7 +5478,7 @@ __epm_pack()
__epm_repack $returntarname __epm_repack $returntarname
[ -n "$repacked_pkgs" ] || fatal "Can't repack $returntarname" [ -n "$repacked_pkgs" ] || fatal "Can't repack $returntarname"
# remove packed file if we have repacked one # remove packed file if we have repacked one
rm -v $returntarname rm -f $returntarname
pkgnames="$repacked_pkgs" pkgnames="$repacked_pkgs"
else else
pkgnames="$returntarname" pkgnames="$returntarname"
...@@ -8819,6 +8823,7 @@ __prepare_source_package() ...@@ -8819,6 +8823,7 @@ __prepare_source_package()
SUBGENERIC='snap' SUBGENERIC='snap'
else else
__epm_pack_run_handler generic-tar "$pkg" __epm_pack_run_handler generic-tar "$pkg"
SUBGENERIC='tar'
fi fi
# it is possible there are a few files, we don't support it # it is possible there are a few files, we don't support it
...@@ -9091,6 +9096,9 @@ __epm_repack_to_rpm() ...@@ -9091,6 +9096,9 @@ __epm_repack_to_rpm()
local buildroot="$tmpbuilddir/$subdir" local buildroot="$tmpbuilddir/$subdir"
# for tarballs fix permissions (ideally fix in pack.d/generic-tar.sh, but there is tar repacking only)
[ "$SUBGENERIC" = "tar" ] && chmod $verbose -R a+rX $buildroot/*
# detect spec and move to prev dir # detect spec and move to prev dir
local spec="$(echo $buildroot/*.spec)" local spec="$(echo $buildroot/*.spec)"
[ -s "$spec" ] || fatal "Can't find spec $spec" [ -s "$spec" ] || fatal "Can't find spec $spec"
...@@ -9104,7 +9112,7 @@ __epm_repack_to_rpm() ...@@ -9104,7 +9112,7 @@ __epm_repack_to_rpm()
__fix_spec $pkgname $buildroot $spec __fix_spec $pkgname $buildroot $spec
__apply_fix_code "generic" $buildroot $spec $pkgname $abspkg __apply_fix_code "generic" $buildroot $spec $pkgname $abspkg
[ -n "$SUBGENERIC" ] && __apply_fix_code "generic-$SUBGENERIC" $buildroot $spec $pkgname $abspkg __apply_fix_code "generic-$SUBGENERIC" $buildroot $spec $pkgname $abspkg
__apply_fix_code $pkgname $buildroot $spec $pkgname $abspkg __apply_fix_code $pkgname $buildroot $spec $pkgname $abspkg
cd - >/dev/null cd - >/dev/null
......
...@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR ...@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install # will replaced with /etc/eepm during install
CONFIGDIR=$PROGDIR/../etc CONFIGDIR=$PROGDIR/../etc
EPMVERSION="3.57.0" EPMVERSION="3.57.1"
# package, single (file), pipe, git # package, single (file), pipe, git
EPMMODE="package" EPMMODE="package"
...@@ -760,7 +760,11 @@ assure_tmpdir() ...@@ -760,7 +760,11 @@ assure_tmpdir()
{ {
if [ -z "$TMPDIR" ] ; then if [ -z "$TMPDIR" ] ; then
export TMPDIR="/tmp" export TMPDIR="/tmp"
warning "Your have no TMPDIR defined. Use $TMPDIR as fallback." warning "Your have no TMPDIR defined. Using $TMPDIR as fallback."
fi
if [ ! -d "$TMPDIR" ] ; then
fatal "TMPDIR $TMPDIR does not exist."
fi fi
if [ ! -w "$TMPDIR" ] ; then if [ ! -w "$TMPDIR" ] ; then
...@@ -827,16 +831,17 @@ __epm_remove_tmp_files() ...@@ -827,16 +831,17 @@ __epm_remove_tmp_files()
trap "-" EXIT trap "-" EXIT
[ -n "$DEBUG" ] && return 0 [ -n "$DEBUG" ] && return 0
[ -n "$verbose" ] && info "Removing tmp files on exit ..."
if [ -n "$to_clean_tmp_dirs" ] ; then if [ -n "$to_clean_tmp_dirs" ] ; then
echo "$to_clean_tmp_dirs" | while read p ; do echo "$to_clean_tmp_dirs" | while read p ; do
rm -rf "$p" 2>/dev/null rm $verbose -rf "$p" 2>/dev/null
done done
fi fi
if [ -n "$to_clean_tmp_files" ] ; then if [ -n "$to_clean_tmp_files" ] ; then
echo "$to_clean_tmp_files" | while read p ; do echo "$to_clean_tmp_files" | while read p ; do
rm -f "$p" 2>/dev/null rm $verbose -f "$p" 2>/dev/null
rmdir "$(dirname "$p")" 2>/dev/null
done done
fi fi
......
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