aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/createpkg
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-27 20:40:56 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-27 20:40:56 +0000
commitf9c53d45050654728770c8e3a121c66fdeb90460 (patch)
tree589b2075b51b82d98299a3627d5b3474ab7c8965 /trunk/src/createpkg
parent66ade94289ea598027cafea77b938735edd7ec43 (diff)
downloadsimplepkg-f9c53d45050654728770c8e3a121c66fdeb90460.tar.gz
simplepkg-f9c53d45050654728770c8e3a121c66fdeb90460.tar.bz2
fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@556 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/createpkg')
-rw-r--r--trunk/src/createpkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index dcc3baa..2db3269 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -544,7 +544,7 @@ if [ $REMOVE_OLD_PACKAGE -eq $on ]; then
PACKAGE_ARCH="`package_arch $PKG_NAME`"
PACKAGE_BUILD="`package_build $PKG_NAME`"
- for file in `find . -name "$PACKAGE-*-*-*.*"`; do
+ for file in `find . -mindepth 2 -name "$PACKAGE-*-*-*.*"`; do
if svn_check $file; then
# Just delete packages with different arch, version or build number
if [ "`package_version $file`" != "$PACKAGE_VERSION" ] || \
@@ -572,7 +572,7 @@ if [ $REMOVE_OLD_PACKAGE -eq $on ]; then
cd $cwd
else
- find $MAKEPKG_REPOS -name "$PACKAGE-*-*-*.*" -exec rm {} 2>/dev/null \;
+ find $MAKEPKG_REPOS -mindepth 2 -name "$PACKAGE-*-*-*.*" -exec rm {} 2>/dev/null \;
find $MAKEPKG_REPOS -name "$PACKAGE.slack-required" -exec rm {} 2>/dev/null \;
fi
fi