The fix is unbelievably simple.

Patch attached and here's the change.. a one liner, simply add the
following line immediately after it reads the filename from the command
line (args[0]). The line replaces a space with '\ ' which is the proper
path expansion for directories with spaces in the filenames. Not sure if
there's a more gramatically correct way to do this, but this works.

         afile.replace(' ', '\\ ')

So, with the attached patch, this can be fixed and applied to package.

** Attachment added: "Fix broken filename when spaces appear in the name."
   http://launchpadlibrarian.net/10321387/gdebi-kde-filename.patch

-- 
Kubuntu Package Installer (GDebiKDE) says "Package File Does Not Exist" when 
trying to install a deb that's in a directory that has a space in  it's name.
https://bugs.launchpad.net/bugs/152856
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to