close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 15 years ago

Closed 14 years ago

#944 closed defect (fixed)

InstallFromUrl fails with versioned package

Reported by: Jorge Owned by: Víctor de Buen Remiro
Priority: high Milestone: TOL Packages
Component: ASCII data files Version: head
Severity: critical Keywords:
Cc: Pedro Gea

Description

If we try to install a package with a version number in the name using InstallFromUrl it fails, for instance:

Real TolPackage::Client::InstallFromUrl( "file:///home/jsperez/.tol/TolPackage/Server/GuiToolsRepository/Linux-x86_32/GuiTools.2.2.zip");

will output

RACE [InstallFromUrl] url=file:///home/jsperez/.tol/TolPackage/Server/GuiToolsRepository/Linux-x86_32/GuiTools.2.2.zip
TRACE [InstallFromUrl] path=file:///home/jsperez/.tol/TolPackage/Server/GuiToolsRepository/Linux-x86_32
TRACE [InstallFromUrl] package=GuiTools

ERROR: [2] [ZipArchive] Error while extracting from archive /home/jsperez/.tol/TolPackage/Client/GuiTools.zip file * to /home/jsperez/.tol/TolPackage/Client/GuiTools: Permission denied.

[Call stack]
  [4] Real s::new::DirExtract (Text originalDirPath, Text destinationDirPath)
  [3] Real StdLib::PackArchive::UnpackFull (Text engine, Text originalDirPath)
  [2] Real StdLib::TolPackage::Client::@Repository::DownloadPackageFromUrl (Text url, Text packageName)
  [1] Real StdLib::TolPackage::Client::InstallFromUrl (Text url)

from that we can see that it is considered as GuiTools with out version number and not as GuiTools.2.2

If instead we invoke

Real TolPackage::Client::@Repository::DownloadPackageFromUrl( "file:///home/jsperez/.tol/TolPackage/Server/GuiToolsRepository/Linux-x86_32/", "GuiTools.2.2");

then it works as expected.

Change History (1)

comment:1 Changed 14 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.