I've just installed 10.1 on a new machine. As per usual, I've installed smart first up and updated. It's failing as such: Traceback (most recent call last): ############################################ ( 96%) File "/usr/bin/smart", line 194, in ? main(sys.argv[1:]) File "/usr/bin/smart", line 167, in main exitcode = iface.run(opts.command, opts.argv) File "/usr/lib/python2.4/site-packages/smart/interfaces/text/interactive.py", line 46, in run Interpreter(self._ctrl).cmdloop() File "/usr/lib/python2.4/cmd.py", line 142, in cmdloop stop = self.onecmd(line) File "/usr/lib/python2.4/site-packages/smart/interfaces/text/interactive.py", line 195, in onecmd return Cmd.onecmd(self, line) File "/usr/lib/python2.4/cmd.py", line 219, in onecmd return func(arg) File "/usr/lib/python2.4/site-packages/smart/interfaces/text/interactive.py", line 674, in do_update self._ctrl.reloadChannels(channels, caching=NEVER) File "/usr/lib/python2.4/site-packages/smart/control.py", line 375, in reloadChannels self._cache.load() File "/usr/lib/python2.4/site-packages/smart/backends/rpm/metadata.py", line 321, in loadFileProvides self.parseFilesList(fndict) File "/usr/lib/python2.4/site-packages/smart/backends/rpm/metadata.py", line 346, in parseFilesList for event, elem in cElementTree.iterparse(file, ("start", "end")): File "<string>", line 64, in __iter__ SyntaxError: not well-formed (invalid token): line 479344, column 58 Turns out my home installation now has the exact same problem. I think I've narrowed it down to a problem in the suse updates channel file: ftp://ftp.suse.com/pub/suse/update/10.1/repodata/filelists.xml.gz line 479343 of which reads: <file>/usr/share/gforce/G-Force ColorMaps/Punkin'</file> Could it be the single quote that is outwitting smart? Is anyone else experiencing similar problems? Thanks Craig --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Craig Millar schrieb:
SyntaxError: not well-formed (invalid token): line 479344, column 58
Known: https://bugzilla.novell.com/show_bug.cgi?id=207111 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 20/09/06 22:56 +0200, Andreas Hanke wrote:
Craig Millar schrieb:
SyntaxError: not well-formed (invalid token): line 479344, column 58
Thanks. Guess that channel is off limits until someone either modifies the repodata or smart is fixed. :( --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 20 Sep 2006, Craig Millar wrote:
On 20/09/06 22:56 +0200, Andreas Hanke wrote:
Craig Millar schrieb:
SyntaxError: not well-formed (invalid token): line 479344, column 58
Thanks. Guess that channel is off limits until someone either modifies the repodata or smart is fixed. :(
It's not smart's fault -- the metadata is broken and will be fixed ASAP. Regards Christoph --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
SyntaxError: not well-formed (invalid token): line 479344, column 58
Thanks. Guess that channel is off limits until someone either modifies the repodata or smart is fixed. :(
It's not smart's fault -- the metadata is broken and will be fixed ASAP.
Indeed. Even apt-get update gets a hiccup. Jan Engelhardt -- --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Craig Millar schrieb:
Guess that channel is off limits until someone either modifies the repodata or smart is fixed. :(
smart doesn't need to be fixed because it's not smart's fault. As a workaround, you can use this channel definition instead of the rpm-md one for now: [update] type = apt-rpm name = Online-Updates baseurl = http://ftp4.gwdg.de/pub/linux/suse/apt/SuSE/10.1-i386 components = update resp. [update] type = apt-rpm name = Online-Updates baseurl = http://ftp4.gwdg.de/pub/linux/suse/apt/SuSE/10.1-x86_64 components = update It contains the same packages with a different repository metadata format. This works with smart, but won't help yum users, because yum cannot read any other metadata format than rpm-md. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 20/09/06 23:21 +0200, Andreas Hanke wrote:
Craig Millar schrieb:
Guess that channel is off limits until someone either modifies the repodata or smart is fixed. :(
smart doesn't need to be fixed because it's not smart's fault.
Thank you Andreas and Christoph. Ideally though, smart would be a little bit more aware of such potential problems and exit gracefully with a more helpful error message. Craig --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 20 September 2006 23:21, Andreas Hanke wrote:
Craig Millar schrieb:
Guess that channel is off limits until someone either modifies the repodata or smart is fixed. :(
smart doesn't need to be fixed because it's not smart's fault.
A program should never ever crash on bad input. Any program that does has a bug and needs to be fixed. Of course it won't help you download packages, but it will provide nicer (comprehensible) error messages, and avoid possible exploits (just about all of them rely on programs crashing on bad input) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anders Johansson wrote:
On Wednesday 20 September 2006 23:21, Andreas Hanke wrote:
Craig Millar schrieb:
Guess that channel is off limits until someone either modifies the repodata or smart is fixed. :( smart doesn't need to be fixed because it's not smart's fault.
A program should never ever crash on bad input. Any program that does has a bug and needs to be fixed.
Of course it won't help you download packages, but it will provide nicer (comprehensible) error messages, and avoid possible exploits (just about all of them rely on programs crashing on bad input)
Erm, sure, but if you fear the repository metadata to be abused to do
something malicious on your box, that's the least of your problems.
I could just make a new amarok, apache or whatever release in my repo
and put a "rm -rf /" in %pre or %post
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\
On Wednesday 20 September 2006 23:34, Pascal Bleser wrote:
Anders Johansson wrote:
On Wednesday 20 September 2006 23:21, Andreas Hanke wrote:
Craig Millar schrieb:
Guess that channel is off limits until someone either modifies the repodata or smart is fixed. :(
smart doesn't need to be fixed because it's not smart's fault.
A program should never ever crash on bad input. Any program that does has a bug and needs to be fixed.
Of course it won't help you download packages, but it will provide nicer (comprehensible) error messages, and avoid possible exploits (just about all of them rely on programs crashing on bad input)
Erm, sure, but if you fear the repository metadata to be abused to do something malicious on your box, that's the least of your problems.
I could just make a new amarok, apache or whatever release in my repo and put a "rm -rf /" in %pre or %post
which is also why I keep telling people to only use repositories from trusted sources (and yes, you are one of them) But it's just out of general principles. A program crashing, regardless of the reason for it, is just sloppy. It means the programmer forgot to handle a possible error source --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2006-09-20 23:39:13 +0200, Anders Johansson wrote:
which is also why I keep telling people to only use repositories from trusted sources (and yes, you are one of them)
you trust pascal? you havent seen him live yet right?:) *scnr* darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Marcus Rueckert wrote:
On 2006-09-20 23:39:13 +0200, Anders Johansson wrote:
which is also why I keep telling people to only use repositories from trusted sources (and yes, you are one of them)
you trust pascal? you havent seen him live yet right?:) *scnr*
/me sends the mob
Marcus, stop hijacking threads ;P
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\
participants (7)
-
Anders Johansson
-
Andreas Hanke
-
Christoph Thiel
-
Craig Millar
-
Jan Engelhardt
-
Marcus Rueckert
-
Pascal Bleser