Skip to content

Commit

Permalink
Export a list of installed packages installed, update changelog
Browse files Browse the repository at this point in the history
Generate a list of apt and python packages installed in lepidopter image
  • Loading branch information
anadahz committed May 3, 2017
1 parent f7fbae6 commit e9ee9cb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ This release version includes ooniprobe version 2.2.0.
- Fix active meek tor bridges
- Set mount option noatime
- Reduce GPU memory to 32M (was 64M)
- Pin txtorcon version to 0.18.0

Lepidopter v0.3.5-beta [2016-10-16]
------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions customize
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,11 @@ chroot ${ROOTDIR} ln -s /var/run/motd /etc/motd
# Add (optional) pluggable transport support in tor config
cat conf/tor-pt.conf >> ${ROOTDIR}/etc/tor/torrc

# Get list of apt and Python packages from lepidopter image
rsync -av --no-R --no-implied-dirs --remove-source-files \
${ROOTDIR}/lepidopter-apt-packages pkglist/lepidopter-${LEPIDOPTER_BUILD}-${ARCH}-apt-packages
rsync -av --no-R --no-implied-dirs --remove-source-files \
${ROOTDIR}/lepidopter-pip-packages pkglist/lepidopter-${LEPIDOPTER_BUILD}-${ARCH}-pip-packages

echo "Customize script finished successfully."
exit 0
4 changes: 4 additions & 0 deletions lepidopter-fh/cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env bash
set -ex

# Generate list of installed apt and Python packages
dpkg-query -W -f='${binary:Package} ${Version}\n' > /lepidopter-apt-packages
pip freeze > /lepidopter-pip-packages

# Clean up the local repository of retrieved package files
apt-get clean
apt-get autoclean
Expand Down
Empty file added pkglist/.gitkeep
Empty file.

0 comments on commit e9ee9cb

Please sign in to comment.