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
etersoft
eepm
Commits
54d1ad5f
Commit
54d1ad5f
authored
Mar 19, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack: add warning for yaml file problems
parent
6f75ae4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
generic-snap.sh
pack.d/generic-snap.sh
+1
-1
generic.sh
repack.d/generic.sh
+5
-2
No files found.
pack.d/generic-snap.sh
View file @
54d1ad5f
...
...
@@ -21,7 +21,7 @@ a= unsquashfs $TAR || fatal
# version: 1.69.1
# summary: Plex for Linux
# description:
eval
$(
epm tool yaml squashfs-root/meta/snap.yaml |
grep
-E
"(name|version|summary|description)="
)
#"
eval
$(
epm tool yaml squashfs-root/meta/snap.yaml |
grep
-E
"
^
(name|version|summary|description)="
)
#"
[
-n
"
$name
"
]
||
fatal
"Can't get name from snap.yaml"
[
-n
"
$version
"
]
||
fatal
"Can't get version from snap.yaml"
...
...
repack.d/generic.sh
View file @
54d1ad5f
...
...
@@ -151,10 +151,10 @@ set_rpm_field "Distribution" "EEPM"
# TODO: check the yaml file!!!
if
[
-r
"
$PKG
.eepm.yaml"
]
;
then
eval
$(
epm tool yaml
$PKG
.eepm.yaml |
grep
-E
'(summary|description|upstream_file|upstream_url|url|appname|arch|group|license|version)='
)
#'
eval
$(
epm tool yaml
$PKG
.eepm.yaml |
grep
-E
'
^
(summary|description|upstream_file|upstream_url|url|appname|arch|group|license|version)='
)
#'
# for tarballs fix permissions
chmod
$verbose
-R
a+rX
*
[
-n
"
$name
"
]
&&
[
"
$name
"
!=
"
$PRODUCT
"
]
&&
warning
"name
$name
in
$PKG
.eepm.yaml is not equal to PRODUCT
$PRODUCT
"
[
-n
"
$version
"
]
&&
set_rpm_field
"Version"
"
$version
"
set_rpm_field
"Group"
"
$group
"
set_rpm_field
"License"
"
$license
"
...
...
@@ -164,6 +164,9 @@ if [ -r "$PKG.eepm.yaml" ] ; then
[
-n
"
$upstream_url
"
]
&&
upstream_file
=
"
$upstream_url
"
[
-n
"
$description
"
]
&&
subst
"s|^
\(
(Converted from a
\)
\(
.*
\)
\(
package.*
\)
|
$description
\n
(Repacked from
$upstream_file
with EPM
$(
epm
--short
--version
)
)
\n\1
\2
\3
|"
$SPEC
else
warning
"
$PKG
.eepm.yaml is missed"
exya
=
"
$(
echo
$(
dirname
$PKG
.eepm.yaml
)
/
*
.eepm.yaml
)
"
[
-f
"
$exya
"
]
&&
warning
"
$PKG
.eepm.yaml is missed, but
$exya
is exists"
subst
"s|^
\(
(Converted from a
\)
\(
.*
\)
\(
package.*
\)
|(Repacked from binary
\2
package with EPM
$(
epm
--short
--version
)
)
\n\1
\2
\3
|"
$SPEC
fi
...
...
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