for i in$(grep'^%dir "'$spec | sed-e's|^%dir *"\(.*\)".*|\1|');do#"
for i in$(grep'^%dir "'$spec | sed-e's|^%dir *"\(.*\)".*|\1|');do#"
echo"$i" | grep-q'^/opt/'&&continue
echo"$i" | grep-q'^/opt/'&&continue
[-d"$i"]&&echo"drop dir $i from packing, it exists in the system"
[-d"$i"]&&[-n"$verbose"]&&echo"drop dir $i from packing, it exists in the system"
done
done
# replace dir "/path/dir" -> %dir /path/dir
# replace dir "/path/dir" -> %dir /path/dir
...
@@ -5647,7 +5652,9 @@ __apply_fix_code()
...
@@ -5647,7 +5652,9 @@ __apply_fix_code()
[-x"$repackcode"]||return
[-x"$repackcode"]||return
shift
shift
export PATH=$PROGDIR:$PATH
export PATH=$PROGDIR:$PATH
docmd $repackcode"$1""$2"|| fatal "There is an error from $repackcode script"
local bashopt=''
[-n"$verbose"]&&bashopt='-x'
docmd bash $bashopt$repackcode"$1""$2"|| fatal "There is an error from $repackcode script"
}
}
__create_rpmmacros()
__create_rpmmacros()
...
@@ -5673,7 +5680,7 @@ __epm_repack_to_rpm()
...
@@ -5673,7 +5680,7 @@ __epm_repack_to_rpm()
assure_exists rpmbuild rpm-build || fatal
assure_exists rpmbuild rpm-build || fatal
# TODO: improve
# TODO: improve
if echo"$pkgs" | grep"\.deb";then
if echo"$pkgs" | grep-q"\.deb";then
assure_exists dpkg || fatal
assure_exists dpkg || fatal
# TODO: Для установки требует: /usr/share/debconf/confmodule но пакет не может быть установлен
# TODO: Для установки требует: /usr/share/debconf/confmodule но пакет не может быть установлен
# assure_exists debconf
# assure_exists debconf
...
@@ -5701,9 +5708,14 @@ __epm_repack_to_rpm()
...
@@ -5701,9 +5708,14 @@ __epm_repack_to_rpm()
# TODO: use stoplist only for deb?
# TODO: use stoplist only for deb?
[-z"$force"]&& __check_stoplist $(echo$alpkg | sed-e"s|_.*||")&& fatal "Please use official rpm package instead of $alpkg (It is not recommended to use --force to skip this checking."
[-z"$force"]&& __check_stoplist $(echo$alpkg | sed-e"s|_.*||")&& fatal "Please use official rpm package instead of $alpkg (It is not recommended to use --force to skip this checking."
# don't use abs package path: copy package to temp dir and use there
# don't use abs package path: copy package to temp dir and use there