Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
a0be2778
Commit
a0be2778
authored
Apr 07, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix shellcheck SC1007
parent
5718c64f
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
22 additions
and
22 deletions
+22
-22
epm-Install
bin/epm-Install
+1
-1
epm-Upgrade
bin/epm-Upgrade
+1
-1
epm-autoorphans
bin/epm-autoorphans
+1
-1
epm-check_updated_repo
bin/epm-check_updated_repo
+1
-1
epm-checksystem
bin/epm-checksystem
+1
-1
epm-conflicts
bin/epm-conflicts
+1
-1
epm-filelist
bin/epm-filelist
+1
-1
epm-install
bin/epm-install
+1
-1
epm-optimize
bin/epm-optimize
+1
-1
epm-query
bin/epm-query
+1
-1
epm-query_package
bin/epm-query_package
+1
-1
epm-release_upgrade
bin/epm-release_upgrade
+2
-2
epm-requires
bin/epm-requires
+2
-2
epm-sh-altlinux
bin/epm-sh-altlinux
+2
-2
epm-sh-functions
bin/epm-sh-functions
+1
-1
epm-simulate
bin/epm-simulate
+2
-2
epm-site
bin/epm-site
+2
-2
No files found.
bin/epm-Install
View file @
a0be2778
...
...
@@ -33,7 +33,7 @@ epm_Install()
yum-rpm
)
;;
*
)
pkg_filenames
=
epm_update
||
return
pkg_filenames
=
''
epm_update
||
return
;;
esac
...
...
bin/epm-Upgrade
View file @
a0be2778
...
...
@@ -26,7 +26,7 @@ epm_Upgrade()
yum-rpm
)
;;
*
)
pkg_filenames
=
epm_update
||
return
pkg_filenames
=
''
epm_update
||
return
;;
esac
...
...
bin/epm-autoorphans
View file @
a0be2778
...
...
@@ -43,7 +43,7 @@ case $PMTYPE in
apt-dpkg|aptitude-dpkg
)
assure_exists deborphan
showcmd deborphan
a
=
deborphan | docmd epm remove
a
=
''
deborphan | docmd epm remove
;;
#aura)
# sudocmd aura -Oj
...
...
bin/epm-check_updated_repo
View file @
a0be2778
...
...
@@ -61,7 +61,7 @@ update_repo_if_needed()
cd
/
if
!
__is_repo_info_downloaded
||
!
__is_repo_info_uptodate
;
then
load_helper epm-update
pkg_filenames
=
epm_update
pkg_filenames
=
''
epm_update
fi
cd
-
>
/dev/null
...
...
bin/epm-checksystem
View file @
a0be2778
...
...
@@ -26,7 +26,7 @@ epm_checksystem_ALTLinux()
touch
$TDIR
/added
for
ft
in
$(
ls
/usr/lib/rpm/
*
.filetrigger |
sort
)
;
do
echo
"Try run
$ft
..."
echo
$TDIR
/added
$TDIR
/removed |
a
=
time
$ft
echo
$TDIR
/added
$TDIR
/removed |
a
=
''
time
$ft
done
rm
-f
$TDIR
/added fatal
rmdir
$TDIR
||
fatal
...
...
bin/epm-conflicts
View file @
a0be2778
...
...
@@ -70,7 +70,7 @@ case $PMTYPE in
# FIXME: need fix for a few names case
if
is_installed
$pkg_names
;
then
showcmd dpkg
-s
$pkg_names
a
=
dpkg
-s
$pkg_names
|
grep
"^Conflicts:"
|
sed
"s|^Conflicts:||g"
a
=
''
dpkg
-s
$pkg_names
|
grep
"^Conflicts:"
|
sed
"s|^Conflicts:||g"
return
else
EXTRA_SHOWDOCMD
=
' | grep "Conflicts:"'
...
...
bin/epm-filelist
View file @
a0be2778
...
...
@@ -44,7 +44,7 @@ __alt_local_content_filelist()
__deb_local_content_filelist
()
{
showcmd
"apt-file list
$1
| grep '^
$1
: ' | sed -e 's|
$1
: ||g'"
a
=
apt-file list
"
$1
"
|
grep
"^
$1
: "
|
sed
-e
"s|
$1
: ||g"
a
=
''
apt-file list
"
$1
"
|
grep
"^
$1
: "
|
sed
-e
"s|
$1
: ||g"
}
...
...
bin/epm-install
View file @
a0be2778
...
...
@@ -47,7 +47,7 @@ filter_out_installed_packages()
# for zypper before SUSE/11.0
__use_zypper_no_gpg_checks
()
{
a
=
zypper
install
--help
2>&1 |
grep
-q
--
"--no-gpg-checks"
&&
echo
"--no-gpg-checks"
a
=
''
zypper
install
--help
2>&1 |
grep
-q
--
"--no-gpg-checks"
&&
echo
"--no-gpg-checks"
}
# args: cmd_reinstall, cmd_install, packages
...
...
bin/epm-optimize
View file @
a0be2778
...
...
@@ -25,7 +25,7 @@ __repack_rpm_base()
cd
/var/lib/rpm
||
fatal
mv
Packages Packages.BACKUP
||
fatal
# mask dependencies with a=
a
=
db_dump Packages.BACKUP |
a
=
db_load Packages
||
fatal
a
=
''
db_dump Packages.BACKUP |
a
=
db_load Packages
||
fatal
rm
Packages.BACKUP
}
...
...
bin/epm-query
View file @
a0be2778
...
...
@@ -156,7 +156,7 @@ __epm_query_dpkg_check()
{
local
i
for
i
in
$@
;
do
a
=
dpkg
-s
$i
>
/dev/null 2>/dev/null
||
return
a
=
''
dpkg
-s
$i
>
/dev/null 2>/dev/null
||
return
done
return
0
}
...
...
bin/epm-query_package
View file @
a0be2778
...
...
@@ -33,5 +33,5 @@ epm_query_package()
MGS
=
$(
eval
__epm_search_make_grep
$quoted_args
)
EXTRA_SHOWDOCMD
=
$MGS
# Note: get all packages list and do grep
eval
"pkg_filenames= epm_packages
\"
$(
eval
get_firstarg
$quoted_args
)
\"
$MGS
"
eval
"pkg_filenames=
''
epm_packages
\"
$(
eval
get_firstarg
$quoted_args
)
\"
$MGS
"
}
bin/epm-release_upgrade
View file @
a0be2778
...
...
@@ -65,7 +65,7 @@ __replace_alt_version_in_repo()
#echo "Upgrading $DISTRNAME from $1 to $2 ..."
docmd apt-repo list |
sed
-e
"s|
\(
$1
\)
|{
\1
}->{
$2
}|g"
| egrep
--color
--
"
$1
"
# ask and replace only we will have changes
if
a
=
apt-repo list | egrep
-q
--
"
$1
"
;
then
if
a
=
''
apt-repo list | egrep
-q
--
"
$1
"
;
then
confirm
"Are these correct changes? [y/N]"
||
fatal
"Exiting"
__replace_text_in_alt_repo
"/^ *#/! s!
$1
!
$2
!g"
fi
...
...
@@ -76,7 +76,7 @@ __alt_repofix()
{
load_helper epm-repofix
showcmd epm repofix
quiet
=
1
pkg_filenames
=
epm_repofix
>
/dev/null
quiet
=
1
pkg_filenames
=
''
epm_repofix
>
/dev/null
__replace_text_in_alt_repo
"/^ *#/! s!
\[
p[6-9]
\]
![updates]!g"
}
...
...
bin/epm-requires
View file @
a0be2778
...
...
@@ -34,7 +34,7 @@ epm_requires_files()
;;
deb
)
assure_exists dpkg
a
=
docmd dpkg
-I
$pkg_files
|
grep
"^ *Depends:"
|
sed
"s|^ *Depends:||g"
a
=
''
docmd dpkg
-I
$pkg_files
|
grep
"^ *Depends:"
|
sed
"s|^ *Depends:||g"
;;
*
)
fatal
"Have no suitable command for
$PKGTYPE
"
...
...
@@ -91,7 +91,7 @@ case $PMTYPE in
# FIXME: need fix for a few names case
if
is_installed
$pkg_names
;
then
showcmd dpkg
-s
$pkg_names
a
=
dpkg
-s
$pkg_names
|
grep
"^Depends:"
|
sed
"s|^Depends:||g"
a
=
''
dpkg
-s
$pkg_names
|
grep
"^Depends:"
|
sed
"s|^Depends:||g"
return
else
CMD
=
"apt-cache depends"
...
...
bin/epm-sh-altlinux
View file @
a0be2778
...
...
@@ -41,10 +41,10 @@ __local_ercat()
for
i
in
$*
;
do
case
"
$i
"
in
*
.xz
)
a
=
xzcat
$i
a
=
''
xzcat
$i
;;
*
.lz4
)
a
=
lz4cat
$i
a
=
''
lz4cat
$i
;;
*
.failed
)
# just ignore
...
...
bin/epm-sh-functions
View file @
a0be2778
...
...
@@ -522,7 +522,7 @@ is_active_systemd()
SYSTEMD_CGROUP_DIR
=
/sys/fs/cgroup/systemd
[
-x
"
$SYSTEMCTL
"
]
||
return
[
-d
"
$SYSTEMD_CGROUP_DIR
"
]
||
return
a
=
mountpoint
-q
"
$SYSTEMD_CGROUP_DIR
"
||
return
a
=
''
mountpoint
-q
"
$SYSTEMD_CGROUP_DIR
"
||
return
readlink
/sbin/init |
grep
-q
'systemd'
||
return
# some hack
ps ax |
grep
'[s]ystemd'
|
grep
-q
-v
'systemd-udev'
...
...
bin/epm-simulate
View file @
a0be2778
...
...
@@ -23,12 +23,12 @@ load_helper epm-search
# for zypper before SUSE/11.0
__use_zypper_dry_run
()
{
a
=
zypper
install
--help
2>&1 |
grep
-q
--
"--dry-run"
&&
echo
"--dry-run"
a
=
''
zypper
install
--help
2>&1 |
grep
-q
--
"--dry-run"
&&
echo
"--dry-run"
}
__use_yum_assumeno
()
{
a
=
yum
--help
2>&1 |
grep
-q
--
"--assumeno"
a
=
''
yum
--help
2>&1 |
grep
-q
--
"--assumeno"
}
...
...
bin/epm-site
View file @
a0be2778
...
...
@@ -27,7 +27,7 @@ paoapi()
# http://petstore.swagger.io/?url=http://packages.altlinux.org/api/docs
epm assure curl
||
return
1
showcmd curl
"
$PAOURL
/api/
$1
"
a
=
curl
-s
--header
"Accept: application/json"
"
$PAOURL
/api/
$1
"
a
=
''
curl
-s
--header
"Accept: application/json"
"
$PAOURL
/api/
$1
"
}
# TODO: use /home/lav/Projects/git/JSON.sh
...
...
@@ -87,7 +87,7 @@ query_package_url()
get_locale
()
{
local
loc
loc
=
$(
a
=
natspec
--locale
2>/dev/null
)
loc
=
$(
a
=
''
natspec
--locale
2>/dev/null
)
[
-n
"
$loc
"
]
||
loc
=
$LANG
echo
$loc
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment