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
Vladislav
eepm
Commits
a4425bbe
Commit
a4425bbe
authored
Jul 16, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repoindex: drop sudo
parent
b804c077
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
epm-repoindex
bin/epm-repoindex
+9
-9
No files found.
bin/epm-repoindex
View file @
a4425bbe
...
@@ -72,7 +72,7 @@ __epm_repoindex_alt()
...
@@ -72,7 +72,7 @@ __epm_repoindex_alt()
for
arch
in
$archlist
;
do
for
arch
in
$archlist
;
do
[
-d
"
$REPO_DIR
/
$arch
/RPMS.
$REPO_NAME
"
]
||
continue
[
-d
"
$REPO_DIR
/
$arch
/RPMS.
$REPO_NAME
"
]
||
continue
mkdir
-pv
"
$REPO_DIR
/
$arch
/base/"
mkdir
-pv
"
$REPO_DIR
/
$arch
/base/"
su
docmd genbasedir
--bloat
--progress
--topdir
=
$REPO_DIR
$arch
$REPO_NAME
docmd genbasedir
--bloat
--progress
--topdir
=
$REPO_DIR
$arch
$REPO_NAME
done
done
}
}
...
@@ -85,9 +85,9 @@ __epm_repoindex_deb()
...
@@ -85,9 +85,9 @@ __epm_repoindex_deb()
fi
fi
local dir
=
"
$1
"
local dir
=
"
$1
"
su
docmd
mkdir
-pv
"
$dir
"
||
fatal
docmd
mkdir
-pv
"
$dir
"
||
fatal
assure_exists
gzip
assure_exists
gzip
su
docmd dpkg-scanpackages
-t
deb
"
$dir
"
|
gzip
|
cat
>
"
$dir
/Packages.gz"
docmd dpkg-scanpackages
-t
deb
"
$dir
"
|
gzip
|
cat
>
"
$dir
/Packages.gz"
}
}
...
@@ -103,15 +103,15 @@ case $PMTYPE in
...
@@ -103,15 +103,15 @@ case $PMTYPE in
;;
;;
yum-rpm
)
yum-rpm
)
epm
install
--skip-installed
yum-utils createrepo
||
fatal
epm
install
--skip-installed
yum-utils createrepo
||
fatal
su
docmd
mkdir
-pv
"
$@
"
docmd
mkdir
-pv
"
$@
"
su
docmd createrepo
-v
-s
md5
"
$@
"
docmd createrepo
-v
-s
md5
"
$@
"
su
docmd verifytree
docmd verifytree
;;
;;
dnf-rpm
)
dnf-rpm
)
epm
install
--skip-installed
yum-utils createrepo
||
fatal
epm
install
--skip-installed
yum-utils createrepo
||
fatal
su
docmd
mkdir
-pv
"
$@
"
docmd
mkdir
-pv
"
$@
"
su
docmd createrepo
-v
-s
md5
"
$@
"
docmd createrepo
-v
-s
md5
"
$@
"
su
docmd verifytree
docmd verifytree
;;
;;
eoget
)
eoget
)
docmd eoget index
"
$@
"
docmd eoget index
"
$@
"
...
...
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