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
ad7603c9
Commit
ad7603c9
authored
Sep 28, 2023
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkgpriorities: fix for main
parent
7c56d2cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
50-pkgpriorities-main.mk
features.in/pkgpriorities/main/lib/50-pkgpriorities-main.mk
+6
-6
No files found.
features.in/pkgpriorities/main/lib/50-pkgpriorities.mk
→
features.in/pkgpriorities/main/lib/50-pkgpriorities
-main
.mk
View file @
ad7603c9
_
IMAGE_APTBOX_ = $(WORKDIR)
/aptbox
_
MAIN_APTBOX_ = $(WORKDIR)/pkgbox
/aptbox
# Add prerequisite to the copy-packages target of
# Add prerequisite to the copy-packages target of
# $(MKIMAGE_PREFIX)/targets.mk.
# $(MKIMAGE_PREFIX)/targets.mk.
copy-packages: $(_
IMAGE
_APTBOX_)/etc/apt/pkgpriorities
copy-packages: $(_
MAIN
_APTBOX_)/etc/apt/pkgpriorities
_PINNED_PACKAGES_ = $(foreach pp,$(PINNED_PACKAGES),$(if $(findstring :,$(pp)),$(pp),$(pp):$(PIN_PRIORITY)))
_PINNED_PACKAGES_ = $(foreach pp,$(PINNED_PACKAGES),$(if $(findstring :,$(pp)),$(pp),$(pp):$(PIN_PRIORITY)))
_PIN_PRIORITIES_ = $(sort $(foreach pp,$(_PINNED_PACKAGES_),$(lastword $(subst :, ,$(pp)))))
_PIN_PRIORITIES_ = $(sort $(foreach pp,$(_PINNED_PACKAGES_),$(lastword $(subst :, ,$(pp)))))
_PKGPRIORITIES_ = $(subst \n ,\n,$(foreach pri,$(_PIN_PRIORITIES_),$(pri):$(patsubst %:$(pri),\n %,$(filter %:$(pri),$(_PINNED_PACKAGES_)))\n))
_PKGPRIORITIES_ = $(subst \n ,\n,$(foreach pri,$(_PIN_PRIORITIES_),$(pri):$(patsubst %:$(pri),\n %,$(filter %:$(pri),$(_PINNED_PACKAGES_)))\n))
$(_
IMAGE
_APTBOX_)/etc/apt/pkgpriorities: prepare-workdir
$(_
MAIN
_APTBOX_)/etc/apt/pkgpriorities: prepare-workdir
@echo -e '$(_PKGPRIORITIES_)' | sed -e 's,[[:space:]]\+$$,,' >$@
@echo -e '$(_PKGPRIORITIES_)' | sed -e 's,[[:space:]]\+$$,,' >$@
@if [ -s $@ ]; then \
@if [ -s $@ ]; then \
if grep -q '^\(APT::\)\?Dir::Etc::pkgpriorities[[:space:]]' \
if grep -q '^\(APT::\)\?Dir::Etc::pkgpriorities[[:space:]]' \
$(_
IMAGE
_APTBOX_)/etc/apt/apt.conf; \
$(_
MAIN
_APTBOX_)/etc/apt/apt.conf; \
then \
then \
sed -i -e 's,\(Dir::Etc::pkgpriorities\)[[:space:]].*$$,\1 "$@";,g' \
sed -i -e 's,\(Dir::Etc::pkgpriorities\)[[:space:]].*$$,\1 "$@";,g' \
$(_
IMAGE
_APTBOX_)/etc/apt/apt.conf; \
$(_
MAIN
_APTBOX_)/etc/apt/apt.conf; \
else \
else \
echo 'Dir::Etc::pkgpriorities "$@";' \
echo 'Dir::Etc::pkgpriorities "$@";' \
>>$(_
IMAGE
_APTBOX_)/etc/apt/apt.conf; \
>>$(_
MAIN
_APTBOX_)/etc/apt/apt.conf; \
fi; \
fi; \
echo "--- Package priorities ---" >&2; \
echo "--- Package priorities ---" >&2; \
cat $@ >&2; \
cat $@ >&2; \
...
...
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