Re: Wierd traceback on update
John Berninger <[email protected]> Fri, 17 Jan 2003 15:45:49 -0500
| Newsgroups | gmane.network.up2date.current.devel |
|---|---|
| Message-ID | <[email protected]> |
OK, I've just found what the problem is. Hunter, pay attention here, 1.4.x is still your baby. The line immediately before the symlink command does an os.path.exists sanity check to see if the link exists already or not. Well, the problem is, the check follows any existing link to see if the target exists; so it sees the symlink, sees the target file doesn't exist, and returns 0. Then the symlink command gets called, but since the symlink already exists (pointing nowhere), you get the OSError 17. I'll try to come up with a sane patch over the weekend and see if I can't get Hunter to make a point release, but we're both extremely busy lately, and Current's been kinda relegated to my back burner for the time being... On Fri, 17 Jan 2003, John Stauffacher wrote: > I just updated my rpm repository (running current-1.4.2) and I get this > traceback: > > Traceback (innermost last): > File "/usr/sbin/cadmin", line 325, in ? > main() > File "/usr/sbin/cadmin", line 260, in main > mychan.update() > File "/usr/share/current/channel.py", line 182, in update > self._addRpmDir(dir) > File "/usr/share/current/channel.py", line 624, in _addRpmDir > self._addRpmPackage(pathname) > File "/usr/share/current/channel.py", line 850, in _addRpmPackage > os.symlink(pathname, linkname) > OSError: [Errno 17] File exists > > I thought I had duplicate files so I re-mirrored updates.redhat.com and > I still get the error. Anyone got any ideas? > > ++ > John Stauffacher > Network Administrator > Chapman University > [email protected] > 714.628.7249 > > "The man who does not read good books has no advantage over the man who > cannot read them." -Mark Twain (1835-1910) > > "It is from numberless diverse acts of courage and belief that human > history is shaped. Each time a man stands up for an ideal, or acts to > improve the lot of others, or strikes out against injustice, he sends > forth a tiny ripple of hope, and crossing each other from a million > different centers of energy and daring those ripples build a current > which can weep down the mightiest walls of oppression and injustice." - > Robert F Kennedy > > ============================================ > Pursuant to 47 USC, unsolicited e-mail sent to any of my addresses is > subject to an archival fee of not less than $500 U.S. per copy. E-mail > received after any receipt of this notice implies acceptance of these > terms. A copy of the specific law regarding this activity may be found > at http://www.law.cornell.edu/uscode/47/227.shtml > > > _______________________________________________ > Current-server mailing list > [email protected] > http://lists.dulug.duke.edu/mailman/listinfo/current-server -- Thank you, John Berninger Systems Administrator [email protected] Department of Mathematics Box 8205, Harrelson Hall NC State University Raleigh, NC 27695 Phone: (919)515-6315 Fax: (919)515-3798 GPG Key ID: A8C1D45C Fingerprint: B1BB 90CB 5314 3113 CF22 66AE 822D 42A8 A8C1 D45C --