1
0
mirror of synced 2026-05-05 23:56:19 +00:00

2006-05-23 20:24:47 by steve

Clean RPM scattered files for rpmstrap installations.
This commit is contained in:
steve
2006-05-23 20:24:47 +00:00
parent 90052a81a0
commit f52b04d531

View File

@@ -1,7 +1,7 @@
#!/bin/sh
#
# This script runs 'apt-get clean' on the freshly created image,
# to make sure it has the maximum available amount of free space.
# This script cleans the newly created image appropriately both for
# RPM based systems and for APT systems.
#
# Steve
# --
@@ -10,11 +10,19 @@
prefix=$1
#
# Don't run apt-get if we're running under rpmstrap.
#
if [ -z "${rpmstrap}" ]; then
if [ "${rpmstrap}" ]; then
#
# Clean the crazy RPM scattered files.
#
find ${prefix}/etc -name '*.rpmorig' -exec rm -f \{\} \;
find ${prefix}/etc -name '*.rpmnew' -exec rm -f \{\} \;
else
#
# Clean APT cache
#
chroot ${prefix} /usr/bin/apt-get clean
fi