diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-27 19:58:42 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-27 19:58:42 +0000 |
commit | 254aadb51e2401e73be2edafea453079b2b761f2 (patch) | |
tree | fabdbc043a808cf6e47873c0e9b33662ea471b49 /trunk/src/createpkg | |
parent | 27b59b59e8fb3deefe10be5225ab6bf9c80dc0b6 (diff) | |
download | simplepkg-254aadb51e2401e73be2edafea453079b2b761f2.tar.gz simplepkg-254aadb51e2401e73be2edafea453079b2b761f2.tar.bz2 |
more binary repository management improvements
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@545 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/createpkg')
-rw-r--r-- | trunk/src/createpkg | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg index 2661788..f158a21 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 `ls $PACKAGE-*-*-*.tgz`; do + for file in `find . -name "$PACKAGE-*-*-*.*"`; do if svn_check $file; then # Just delete packages with different arch, version or build number if [ "`package_version $file`" != "$PACKAGE_VERSION" ] || \ @@ -556,11 +556,22 @@ if [ $REMOVE_OLD_PACKAGE -eq $on ]; then rm $file fi done + + for file in `find $MAKEPKG_REPOS -name "$PACKAGE.slack-required"`; do + if svn_check $file; then + if [ $MOVE_SLACK_REQUIRED -eq $off ]; then + svn del --force $file + elif [ ! -z "$SLACK_REQUIRED" ] && [ "$NEW_REPOS/$PACKAGE.slack-required" != "$file" ]; then + svn del --force $file + else + rm $file + fi cd $cwd else - rm $NEW_REPOS/$PACKAGE-*-*-*.tgz 2>/dev/null + find $MAKEPKG_REPOS -name "$PACKAGE-*-*-*.*" -exec rm {} 2>/dev/null \; + find $MAKEPKG_REPOS -name "$PACKAGE.slack-required" -exec rm {} 2>/dev/null \; fi fi @@ -597,10 +608,21 @@ fi # Update repository FILELIST.TXT, ... ( + cd $MAKEPKG_REPOS gen_filelist - gen_md5_checksums . 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 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 + ) exit $EXIT_CODE |