sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 3924] New: use scribe with local files
- From: bugzilla-daemon AT metalab.unc.edu
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 3924] New: use scribe with local files
- Date: Thu, 7 Aug 2003 15:42:39 -0400
http://bugs.sourcemage.org/show_bug.cgi?id=3924
Summary: use scribe with local files
Product: Sorcery
Version: All Versions
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Scribe
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: Thomas.Houssin AT int-evry.fr
Reproducible : always
sorcery : update of 06/09/2003 , grimoire test
Whern going "scribe update from file://root/test.tar.bz2" , scribe print an
error about sed : the script parsing the path is broken, the "sed" command in
the file /var/lib/sorcery/url_hanlers/url_file && url_dir has an error.
I wrote a patch (a line in fact) to fix this. With this patch, I'm able to do
scribe update test from file://root/test.tar.bz2 or
scribe update test from file:/root/test.tar.bz2
(the sed line gives the same output on the URL : /root/test.tar.bz2)
--- url_fileOLD 2003-08-01 00:14:11.000000000 +0200
+++ url_file 2003-08-01 22:09:15.000000000 +0200
@@ -33,7 +33,7 @@
#
#---------------------------------------------------------------------
url_file_strip_prefix() {
- echo $1 | sed 's/^file:\/\//' | sed 's/^file://'
+ echo $1 | sed s!^file://!/! | sed s!^file:/!/!
}
--- url_dirOLD 2003-08-01 22:07:22.000000000 +0200
+++ url_dir 2003-08-01 22:11:02.000000000 +0200
@@ -43,7 +43,7 @@
#
#---------------------------------------------------------------------
url_dir_strip_prefix() {
- echo $1 | sed 's/^dir:\/\///' | sed 's/^dir://'
+ echo $1 | sed s!^dir://!/! | sed s!^dir:/!/!
}
Thomas
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
- [SM-Sorcery-Bugs] [Bug 3924] New: use scribe with local files, bugzilla-daemon, 08/07/2003
Archive powered by MHonArc 2.6.24.