Skip to Content.
Sympa Menu

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

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 (ad8272b4d8dc368eff35b825ab9c184587c15f41)
  • Date: Sat, 25 Nov 2006 11:27:40 -0600

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

ChangeLog | 5 +++++
var/lib/sorcery/modules/libsummon | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)

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

fix bug 13254

diff --git a/ChangeLog b/ChangeLog
index fabe12a..7a7abda 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
2006-11-25 Andrew Stitt <astitt AT sourcemage.org>
+ * libsummon: fix bug with file verification by using file -bi
+ to get cleaner mime-like file-type descriptions. Bug 13254,
+ patch from Jaka Kranjc.
+
+2006-11-25 Andrew Stitt <astitt AT sourcemage.org>
* cabal: apply patch from Dave Josephsen, bug 11708

2006-11-25 Andrew Stitt <astitt AT sourcemage.org>
diff --git a/var/lib/sorcery/modules/libsummon
b/var/lib/sorcery/modules/libsummon
index b8d9eb7..0ba7356 100755
--- a/var/lib/sorcery/modules/libsummon
+++ b/var/lib/sorcery/modules/libsummon
@@ -427,9 +427,9 @@ function source_sanity() {
if [[ "$1" != "${1%.tar.bz2}" ]] ||
[[ "$1" != "${1%.tar.gz}" ]] ||
[[ "$1" != "${1%.tgz}" ]]; then
- local _type=$(file "$1")
- if echo $_type | grep -iq HTML ||
- echo $_type | grep -iq ascii ; then
+ local _type=$(file -bi "$1")
+ if echo $_type | grep -iq text/html ||
+ echo $_type | grep -iq text/plain ; then
upvar "$2" "$_type"
return 1
fi



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

Archive powered by MHonArc 2.6.24.

Top of Page