clampak / cyg-apt

Automatically exported from code.google.com/p/cyg-apt
0 stars 0 forks source link

Fix for "need more than 1 value to unpack" error (caused by message for "cygwin" package in setup.ini) #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run cyg-apt list (or any other command that parses setup.ini) with
mirror http://mirrors.kernel.org/sourceware/cygwin (may work with other
mirrors)

What is the expected output? What do you see instead?
I expect a list of packages, instead I get this exception:
$ cyg-apt list vim
Please be advised that this is a major release.
Traceback (most recent call last):
  File "/usr/bin/cyg-apt", line 1581, in <module>
    main()
  File "/usr/bin/cyg-apt", line 1565, in main
    main_scriptname)
  File "/usr/bin/cyg-apt", line 539, in __init__
    self.get_setup_ini()
  File "/usr/bin/cyg-apt", line 622, in get_setup_ini
    string.split(lines[j], ': ', 1))
ValueError: need more than 1 value to unpack

What version of the product are you using? On what operating system?
Windows XP Pro, cyg-apt 1.0.7-1

Please provide any additional information below.
I've attached a patch to resolve this particular issue.

Original issue reported on code.google.com by sumb...@gmail.com on 11 Jan 2010 at 11:12

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the patch, it solves my problem.

Original comment by dacu...@gmail.com on 28 Apr 2010 at 2:36

GoogleCodeExporter commented 8 years ago
That's great to hear, daculas.

Original comment by sumb...@gmail.com on 2 May 2010 at 7:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks for the patch.  I've applied it in my fork of the project:

https://github.com/nylen/cyg-apt

Original comment by jny...@gmail.com on 4 Dec 2012 at 9:56