Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master sorcery by Andrew Stitt (72ea2143506655aca6020f60f76e48cea5e6b8fd)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Andrew Stitt <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master sorcery by Andrew Stitt (72ea2143506655aca6020f60f76e48cea5e6b8fd)
  • Date: Thu, 2 Nov 2006 10:13:46 -0600

GIT changes to master sorcery by Andrew Stitt <astitt AT sourcemage.org>:

ChangeLog | 4 ++++
var/lib/sorcery/modules/libsummon | 6 +++++-
2 files changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 72ea2143506655aca6020f60f76e48cea5e6b8fd
Author: Andrew Stitt <astitt AT sourcemage.org>
Commit: Andrew Stitt <astitt AT sourcemage.org>

fix bug 13173, add check for empty files in summon sanity checker

diff --git a/ChangeLog b/ChangeLog
index 0b8f9f9..812169c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
2006-11-02 Andrew Stitt <astitt AT sourcemage.org>
+ * libsummon: fix bug 13173, add check for empty files in summon
+ sanity checker
+
+2006-11-02 Andrew Stitt <astitt AT sourcemage.org>
* etc/sorcery/config: single quote DOCS to prevent premature
glob expansion
* build_api/common: fix bug 12869, exclude executables from
diff --git a/var/lib/sorcery/modules/libsummon
b/var/lib/sorcery/modules/libsummon
index 97c36b2..b8d9eb7 100755
--- a/var/lib/sorcery/modules/libsummon
+++ b/var/lib/sorcery/modules/libsummon
@@ -418,8 +418,12 @@ ## the correct thing to do). We catch th
## file verification to catch it.
#---------------------------------------------------------------------
function source_sanity() {
- [[ "$1" ]] && return 0
+ [[ "$1" ]] || return 0
[[ "$SUMMON_SANITY" == off ]] && return 0
+ if ! test -s "$1"; then
+ upvar "$2" "Empty"
+ return 1
+ fi
if [[ "$1" != "${1%.tar.bz2}" ]] ||
[[ "$1" != "${1%.tar.gz}" ]] ||
[[ "$1" != "${1%.tgz}" ]]; then



  • [SM-Commit] GIT changes to master sorcery by Andrew Stitt (72ea2143506655aca6020f60f76e48cea5e6b8fd), Andrew Stitt, 11/02/2006

Archive powered by MHonArc 2.6.24.

Top of Page