From 54736ec1c839e07edf0e5065bddf42dc9181c163 Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 27 Nov 2008 20:54:38 +0000 Subject: more repo improvements git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@558 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/createpkg | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'trunk/src/createpkg') 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 ) -- cgit v1.2.3