Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
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
Anton Palgunov
mkimage-profiles
Commits
4a421563
Commit
4a421563
authored
Aug 10, 2022
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repo: separate from 01-genbasedir script to rename rpm to canonical names
parent
3a4d1389
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
01-main-rpms-canonical-name
features.in/repo/scripts.d/01-main-rpms-canonical-name
+16
-0
03-genbasedir
features.in/repo/scripts.d/03-genbasedir
+0
-6
04-pubring
features.in/repo/scripts.d/04-pubring
+0
-0
No files found.
features.in/repo/scripts.d/01-main-rpms-canonical-name
0 → 100755
View file @
4a421563
#!/bin/sh -eu
PREFIX
=
ALTLinux
cd
"
$WORKDIR
/
$PREFIX
"
COMPS
=
"
$(
find
-mindepth
1
-maxdepth
1
-type
d
-name
'RPMS.*'
-printf
'%f\n'
|
sed
's/^RPMS\.//'
)
"
[
-z
"
$GLOBAL_VERBOSE
"
]
||
echo
"** COMPS=
$COMPS
"
>
&2
[
-n
"
$COMPS
"
]
||
exit
1
for
comp
in
$COMPS
;
do
for
f
in
RPMS.
$comp
/
*
rpm
;
do
[
"
$f
"
=
"RPMS.
$comp
/
$(
rpm
-qp
$f
)
.rpm"
]
||
mv
$f
RPMS.
$comp
/
$(
rpm
-qp
$f
)
.rpm
done
done
features.in/repo/scripts.d/0
1
-genbasedir
→
features.in/repo/scripts.d/0
3
-genbasedir
View file @
4a421563
...
...
@@ -9,12 +9,6 @@ COMPS="$(find -mindepth 1 -maxdepth 1 -type d -name 'RPMS.*' -printf '%f\n' |
[
-z
"
$GLOBAL_VERBOSE
"
]
||
echo
"** COMPS=
$COMPS
"
>
&2
[
-n
"
$COMPS
"
]
||
exit
1
for
comp
in
$COMPS
;
do
for
f
in
RPMS.
$comp
/
*
rpm
;
do
[
"
$f
"
=
"RPMS.
$comp
/
$(
rpm
-qp
$f
)
.rpm"
]
||
mv
$f
RPMS.
$comp
/
$(
rpm
-qp
$f
)
.rpm
done
done
# NB: bz2 still needed for apt-cdrom add to work
genbasedir
\
--topdir
=
"
$WORKDIR
"
\
...
...
features.in/repo/scripts.d/0
2
-pubring
→
features.in/repo/scripts.d/0
4
-pubring
View file @
4a421563
File moved
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