mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-18 20:50:10 +01:00
buildserver: mark fdroidserver deps as manual
This lets build steps use `apt-get autoremove` and still have a working fdroidserver.
This commit is contained in:
parent
817a156ea5
commit
7976ecc12a
@ -53,7 +53,6 @@ RUN printf "path-exclude=/usr/share/locale/*\npath-exclude=/usr/share/man/*\npat
|
|||||||
&& bash /opt/buildserver/provision-gradle \
|
&& bash /opt/buildserver/provision-gradle \
|
||||||
&& bash /opt/buildserver/provision-buildserverid $GIT_REV_PARSE_HEAD \
|
&& bash /opt/buildserver/provision-buildserverid $GIT_REV_PARSE_HEAD \
|
||||||
&& rm -rf /vagrant/cache \
|
&& rm -rf /vagrant/cache \
|
||||||
&& apt-mark manual `apt-cache depends fdroidserver | sed -nE 's,^[| ]*Depends: ([a-z0-9 -]+),\1,p'` \
|
|
||||||
&& apt-get autoremove --purge \
|
&& apt-get autoremove --purge \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
@ -115,12 +115,13 @@ packages="
|
|||||||
|
|
||||||
apt-get install $packages --download-only
|
apt-get install $packages --download-only
|
||||||
apt-get install $packages
|
apt-get install $packages
|
||||||
apt-get autoremove --purge
|
|
||||||
|
|
||||||
# fdroidserver comes from git, it was installed just for dependencies
|
# fdroidserver comes from git, it was installed just for dependencies
|
||||||
|
apt-mark manual `apt-cache depends fdroidserver | sed -nE 's,^[| ]*Depends: ([a-z0-9 -]+),\1,p'`
|
||||||
apt-get purge fdroidserver
|
apt-get purge fdroidserver
|
||||||
|
|
||||||
# clean up things that will become outdated anyway
|
# clean up things that will become outdated anyway
|
||||||
|
apt-get autoremove --purge
|
||||||
apt-get clean
|
apt-get clean
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user