naidu/rudix

unable to install or update libsigc++ with Rudix Package Manager

Closed this issue · 3 comments

What steps will reproduce the problem?
run "rudix -i libsigc++" (or "rudix -u")

What is the expected output? What do you see instead?

I would expect something like the following but then for libsigc++ instead of 
dtach.
Downloading rudix.googlecode.com/files/dtach-0.8-6.pkg
######################################################################## 100.0%
installer: Package name is Dtach 0.8
installer: Upgrading at base path /
installer: The upgrade was successful.
All done

Instead, I see a traceback:
Traceback (most recent call last):
  File "/usr/local/bin/rudix", line 439, in <module>
    sys.exit(main())
  File "/usr/local/bin/rudix", line 436, in main
    return process(argv[1:])
  File "/usr/local/bin/rudix", line 399, in process
    net_install_command(normalize(value))
  File "/usr/local/bin/rudix", line 312, in net_install_command
    net_info = get_latest_version_of_package(pkg)
  File "/usr/local/bin/rudix", line 267, in get_latest_version_of_package
    versions = get_versions_for_package(pkg)
  File "/usr/local/bin/rudix", line 257, in get_versions_for_package
    urls = re.findall('(rudix.googlecode.com/files/(%s-([\w.]+(?:-\d+)?(?:.i386)?)(\.dmg|\.pkg)))' % pkg, content)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/re.py", line 177, in findall
    return _compile(pattern, flags).findall(string)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/re.py", line 245, in _compile
    raise error, v # invalid expression
sre_constants.error: multiple repeat


What version of the product are you using? On what operating system?

I upgraded to rudix 11.9 (rudix -i rudix) but the problem persists.
~$ rudix -v
Rudix Package Manager version 11.9
Copyright (c) 2005-2011 Ruda Moura

My OS is MacOS X, Snow Leopard
~$ uname -srmpi
Darwin 10.8.0 x86_64 i386 MacBookPro4,1


Please provide any additional information below.


Original issue reported on code.google.com by davidcat...@gmail.com on 14 Sep 2011 at 3:26

I think it has to do with the name libsigc++, the plus sign has special meaning 
in a regular expression and causes syntax error.

Original comment by UnnamedSpace on 20 Sep 2011 at 6:43

[deleted comment]
The problem is not only to do with REGEXP, but about URL encoding, the plus 
character confuses the site to retrieve the information I require, even if I 
escape the plus char with %2B.

The only action I can take now is to rename libsigc++ to libsigcpp and in the 
future, I will not use plus in package's name.

Original comment by ruda.moura@gmail.com on 24 Mar 2012 at 6:12

  • Changed state: WontFix