Skip to content

Commit

Permalink
many: changes for core22 variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Meulengracht committed Aug 21, 2024
1 parent 9e5e76d commit f4a3297
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ install:

# generate the changelog, for this we need the previous core snap
# to be installed, this should be handled in snapcraft.yaml
if [ -e "/snap/$(SNAP_NAME)/current/usr/share/snappy/dpkg.yaml" ]; then \
if [ -e "/snap/core22/current/usr/share/snappy/dpkg.yaml" ]; then \
./tools/generate-changelog.py \
"/snap/$(SNAP_NAME)/current/usr/share/snappy/dpkg.yaml" \
"/snap/core22/current/usr/share/snappy/dpkg.yaml" \
"$(DESTDIR)/usr/share/snappy/dpkg.yaml" \
"$(DESTDIR)/usr/share/doc" \
$(DESTDIR)/usr/share/doc/ChangeLog; \
Expand All @@ -62,7 +62,7 @@ install:
/bin/cp $(DESTDIR)/usr/share/snappy/dpkg.list /build/core22/core22-$$(date +%Y%m%d%H%M)_$(DPKG_ARCH).manifest; \
/bin/cp $(DESTDIR)/usr/share/snappy/dpkg.yaml /build/core22/core22-$$(date +%Y%m%d%H%M)_$(DPKG_ARCH).dpkg.yaml; \
if [ -e $(DESTDIR)/usr/share/doc/ChangeLog ]; then \
/bin/cp $(DESTDIR)/usr/share/doc/ChangeLog $(BUILDDIR)/$(SNAP_NAME)-$$(date +%Y%m%d%H%M)_$(DPKG_ARCH).ChangeLog; \
/bin/cp $(DESTDIR)/usr/share/doc/ChangeLog $(BUILDDIR)/core22-$$(date +%Y%m%d%H%M)_$(DPKG_ARCH).ChangeLog; \
fi \
fi;

Expand Down
3 changes: 1 addition & 2 deletions tools/generate-changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
# keep the list short to not increase the time it takes
# to generate changelogs
pkg_allowed_list = [
'dpkg', # is removed during hook
'openssl' # contains a symlink which is broken currently
'distro-info-data', # is removed during hook
]

# Returns a dictionary from package name to version, using
Expand Down

0 comments on commit f4a3297

Please sign in to comment.