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
1
Merge Requests
1
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
Ximper Linux
mkimage-profiles
Commits
49ce2347
Commit
49ce2347
authored
May 24, 2018
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkgpriorities: generalize for any stage2
install2 and live are both stage2 flavours, and I see no reason rescue (the last one) should be any different here.
parent
756af48b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
29 deletions
+0
-29
50-pkgpriorities.mk
features.in/pkgpriorities/install2/lib/50-pkgpriorities.mk
+0
-29
50-pkgpriorities.mk
features.in/pkgpriorities/stage2/lib/50-pkgpriorities.mk
+0
-0
No files found.
features.in/pkgpriorities/install2/lib/50-pkgpriorities.mk
deleted
100644 → 0
View file @
756af48b
# NB: A copy of ../../live/lib/50-aptprefs.mk.
# TODO: Manage things to make duplicate files unnecessary.
_IMAGE_APTBOX_ = $(WORKDIR)/chroot/$(WORKDIRNAME)/aptbox
# Add prerequisite to the `build-image` target of
# $(MKIMAGE_PREFIX)/targets.mk.
build-image: $(_IMAGE_APTBOX_)/etc/apt/pkgpriorities
_PINNED_PACKAGES_ = $(foreach pp,$(PINNED_PACKAGES),$(if $(findstring :,$(pp)),$(pp),$(pp):$(PIN_PRIORITY)))
_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))
$(_IMAGE_APTBOX_)/etc/apt/pkgpriorities: prepare-image-workdir
@echo -e '$(_PKGPRIORITIES_)' | sed -e 's/[[:space:]]\+$$//' >$@
@if [ -s $@ ]; then \
if grep -q '^\(APT::\)\?Dir::Etc::pkgpriorities[[:space:]]' \
$(_IMAGE_APTBOX_)/etc/apt/apt.conf; \
then \
sed -i -e 's/\(Dir::Etc::pkgpriorities\)[[:space:]].*$$/\1 "$@";/g' \
$(_IMAGE_APTBOX_)/etc/apt/apt.conf; \
else \
echo 'Dir::Etc::pkgpriorities "$@";' \
>>$(_IMAGE_APTBOX_)/etc/apt/apt.conf; \
fi; \
echo "--- Package priorities ---" >&2; \
cat $@ >&2; \
echo "---" >&2; \
fi
features.in/pkgpriorities/
live
/lib/50-pkgpriorities.mk
→
features.in/pkgpriorities/
stage2
/lib/50-pkgpriorities.mk
View file @
49ce2347
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