diff options
-rw-r--r-- | trunk/src/createpkg | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg index a511e2f..e465e58 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -628,15 +628,23 @@ fi gen_patches_filelist patches 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_checksum $MAKEPKG_REPOS $SUBFOLDER/$PKG_NAME # update md5 file from patches/ folder if needed if [ -d "patches/" ]; then + + found_patch="no" + for file in `find patches/ -name "$PACKAGE-*-*-*.tgz"`; do - SUBFOLDER="`echo $NEW_REPOS | sed -e "s/^$(regexp_slash $MAKEPKG_REPOS/patches)//"`" + found_patch="yes" + SUBFOLDER="`echo $NEW_REPOS | sed -e "s/^$(regexp_slash $MAKEPKG_REPOS/patches/)//"`" update_md5_checksum $MAKEPKG_REPOS/patches $SUBFOLDER/$PKG_NAME done + + if [ "$found_patch" == "yes" ]; then + gen_patches_filelist patches/ + fi fi ) |