Summary: | gentoo-stats adds \r when inserting SYSTEM_ID | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michael Kefeder <m.kefeder> |
Component: | Current packages | Assignee: | Arun Bhanu (RETIRED) <arunbhanu> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | mksoft |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Michael Kefeder
2003-03-25 16:55:30 UTC
IMO, Line 575: (/usr/sbin/gentoo-stat) $s =~ s/Your new system ID is: (.*)[\r\n].*/$1/s; should be $s =~ s/Your new system ID is: (.*)\r\n.*/$1/s; The server returns the $s with \r and \n (both embedded) not either one of them. Regex only checks for one of them. I don't know what kind of breakage the extra ^M in the SYSTEM_ID is causing. My guess would be that it is logging into the database with ^M embedded in the SYSTEM_ID. So if you manually remove the ^M, it'll treat your system id as a different one and log accordingly. |