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
9bcaf4bd
Commit
9bcaf4bd
authored
2 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack/download: verbose chmod only in verbose mode
parent
60fa1d8c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
epm-download
bin/epm-download
+2
-2
epm-repack
bin/epm-repack
+2
-2
No files found.
bin/epm-download
View file @
9bcaf4bd
...
...
@@ -68,7 +68,7 @@ __download_pkg_urls()
[
-z
"
$pkg_urls
"
]
&&
return
for
url
in
$pkg_urls
;
do
local
tmppkg
=
$(
mktemp
-d
)
||
fatal
"failed mktemp -d"
docmd
chmod
-v
a+rX
$tmppkg
docmd
chmod
$verbose
a+rX
$tmppkg
showcmd
cd
$tmppkg
cd
$tmppkg
||
fatal
if
docmd eget
--latest
"
$url
"
;
then
...
...
@@ -76,7 +76,7 @@ __download_pkg_urls()
# use downloaded file
i
=
$(
echo
*
.
*)
[
-s
"
$tmppkg
/
$i
"
]
||
continue
docmd
chmod
-v
a+r
"
$tmppkg
/
$i
"
docmd
chmod
$verbose
a+r
"
$tmppkg
/
$i
"
pkg_files
=
"
$pkg_files
$tmppkg
/
$i
"
to_remove_pkg_files
=
"
$to_remove_pkg_files
$tmppkg
/
$i
"
else
...
...
This diff is collapsed.
Click to expand it.
bin/epm-repack
View file @
9bcaf4bd
...
...
@@ -221,7 +221,7 @@ __prepare_source_package()
[
-n
"
$VERSION
"
]
||
fatal
"Can't get version from
$alpkg
."
SUBGENERIC
=
'appimage'
# TODO: move repack archive to erc?
[
-x
"
$alpkg
"
]
||
docmd
chmod
u+x
-v
"
$alpkg
"
[
-x
"
$alpkg
"
]
||
docmd
chmod
u+x
$verbose
"
$alpkg
"
./
$alpkg
--appimage-extract
||
fatal
alpkg
=
$PKGNAME
-
$VERSION
.tar
assure_exists erc
||
fatal
...
...
@@ -313,7 +313,7 @@ __epm_repack_to_rpm()
local
pkgname
=
"
$(
grep
"^Name: "
$spec
|
sed
-e
"s|Name: ||g"
|
head
-n1
)
"
# for tarballs fix permissions
[
-n
"
$VERSION
"
]
&&
chmod
-R
a+rX
$tmpbuilddir
/
$subdir
/
*
[
-n
"
$VERSION
"
]
&&
chmod
$verbose
-R
a+rX
$tmpbuilddir
/
$subdir
/
*
__fix_spec
$pkgname
$tmpbuilddir
/
$subdir
$spec
__apply_fix_code
"generic"
$tmpbuilddir
/
$subdir
$spec
...
...
This diff is collapsed.
Click to expand it.
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