diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-27 20:54:38 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-27 20:54:38 +0000 |
commit | 54736ec1c839e07edf0e5065bddf42dc9181c163 (patch) | |
tree | 2e1ea3fb5a40c61227ed2009bbe471400d6fbeef /trunk/src/createpkg | |
parent | 4e04db42916e6b5bce711e17ae11ca2f65c4a523 (diff) | |
download | simplepkg-54736ec1c839e07edf0e5065bddf42dc9181c163.tar.gz simplepkg-54736ec1c839e07edf0e5065bddf42dc9181c163.tar.bz2 |
more repo improvements
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@558 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/createpkg')
-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 ) |