Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
F
flatdeb
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
  • Merge Requests 0
    • Merge Requests 0
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Commits
  • Simon McVittie
  • flatdeb
  • Merge Requests
  • !3

Merged
Opened Jan 23, 2020 by Frederic Danis@fdanisContributor

Remove dependencies to Aptitude and add pre_apt_script

  • Overview 9
  • Commits 2
  • Changes 3

Code related to Aptitude can be replaced by usage of pre_apt_script and platform's post_script.

clean-up-base and prepare-runtime specific code can be done in pre_apt_script:

echo 'Aptitude::Delete-Unused "false";' >> /etc/apt/apt.conf.d/flatpak-runtime

# We use aptitude to help prepare the Platform runtime, and
# it's a useful thing to have in the Sdk runtime
apt-get -q -y --no-install-recommends install aptitude

# All packages will be removed from the platform runtime
# unless they are Essential, depended-on, or in the
# add_packages list.
aptitude -y markauto '?installed'

# Ubuntu precise doesn't like apt being up for autoremoval.
aptitude -y unmarkauto apt

platformize, clean-up-before-pack and make-flatpack-friendly may be done in platform_post_script:

if is_installed "$package"; then
  apt-get -y purge aptitude
fi

rm -fr var/lib/aptitude/pkgstates.old
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: smcv/flatdeb!3
Source branch: wip/fdanis/add_pre_apt_script

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.