aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/createpkg
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/createpkg')
-rw-r--r--trunk/src/createpkg12
1 files changed, 7 insertions, 5 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index 549e98f..83ad801 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -615,15 +615,17 @@ fi
gen_filelist
gen_patches_filelist patches
- SUBFOLDER="`echo $NEW_REPOS | sed -e "s/^$(regexp_slash $MAKEPKG_REPOS)//"`"
+ SUBFOLDER="`echo $NEW_REPOS | sed -e "s/^$(regexp_slash $MAKEPKG_REPOS/)//"`"
update_md5_checksum $MAKEPKG_REPOS $SUBFOLDER/$PKG_NAME
gen_meta ./$SUBFOLDER/$PKG_NAME
# update md5 file from patches/ folder if needed
- for file in `find patches/ -name "$PACKAGE-*-*-*.tgz"`; do
- SUBFOLDER="`echo $NEW_REPOS | sed -e "s/^$(regexp_slash $MAKEPKG_REPOS/patches)//"`"
- update_md5_checksum $MAKEPKG_REPOS/patches $SUBFOLDER/$PKG_NAME
- done
+ if [ -d "patches/" ]; then
+ for file in `find patches/ -name "$PACKAGE-*-*-*.tgz"`; do
+ SUBFOLDER="`echo $NEW_REPOS | sed -e "s/^$(regexp_slash $MAKEPKG_REPOS/patches)//"`"
+ update_md5_checksum $MAKEPKG_REPOS/patches $SUBFOLDER/$PKG_NAME
+ done
+ fi
)