Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 10144] New: gaze install-queue reports "Unknown file type."

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 10144] New: gaze install-queue reports "Unknown file type."
  • Date: 28 Nov 2005 13:09:26 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=10144

Summary: gaze install-queue reports "Unknown file type."
Product: Sorcery
Version: Untargetted future release
Platform: Other
OS/Version: other
Status: NEW
Severity: minor
Priority: P2
Component: Gaze
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: vlmarek AT volny.cz


when you type gaze "install-queue"

/usr/sbin/gaze finally gets to the point calling this function

function display() {

if [ -s "$1" ]; then
case "$(file -b $1)" in
*text) cat $1 | $PAGER ;;
bzip2*) bzcat $1 | $PAGER ;;
gzip*) gzip -cd $1 | $PAGER ;;
*) message "Unknown file type."
return 1 ;;
esac
else
message "$2" 1>&2
false
fi
}

The trouble is, that
$ file -b /var/log/sorcery/queue/install
core file (Xenix)

$ cat /var/log/sorcery/queue/install
coreutils
ffmpeg-cvs
linux
module-init-tools
mplayer
nss
scummvm
udev
vpnsun
xorg

File(1) command get's confused by the 'coreutils' at the top of the queue,
probably.

To be true, I can't see any clear fix for this. I tried to rename install to
install.txt, but file(1) does not take that hint. Possible fixes:

* cat unknown filetypes as if it is text. Since for gzip we display anything
what is in the *.gz file anyway.
* gzip /var/log/sorcery/queue/install
* add parameter to display function, which would override the file(1)
detection
* Try to fix file(1) somehow to detect the file correctly as
/usr/share/misc/file/magic contains
0 string core core file (Xenix)

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



  • [SM-Sorcery-Bugs] [Bug 10144] New: gaze install-queue reports "Unknown file type.", bugzilla-daemon, 11/28/2005

Archive powered by MHonArc 2.6.24.

Top of Page