Bug 117

Summary: regpkg requires absolute path to the package file
Product: SlackPack Reporter: Georgi D. Sotirov <gdsotirov>
Component: UtilitiesAssignee: Georgi D. Sotirov <gdsotirov>
Status: RESOLVED FIXED QA Contact: Administrator <root>
Severity: minor    
Priority: Low (P4) CC: root
Version: 0.3.2Flags: gdsotirov: blocking-sp-0.4-
gdsotirov: blocking-sp-0.5+
Target Milestone: 0.5   
Hardware: All   
OS: All   
Whiteboard:
My Bug ID: My description:
My date: My choice:
My selection: ---
Deadline: 2019-12-31   

Description Georgi D. Sotirov 2010-08-28 13:22:12 EEST
After the latest modifications, utility program regpkg requires absolute path to the package file. Otherwise a strange error is raised:

# regpkg ./ilmbase-1.0.2-i486-1gds.txz
regpkg: Error: The file './ilmbase-1.0.2-i486-1gds.txz' is NOT a bzip2, lzma, gzip or xz archive!
Comment 1 Georgi D. Sotirov 2010-08-28 13:25:22 EEST
The problem is due to modifications in revision 1.5, where the working directory of the utility is changed. Now idea how to fix this for now, but it needs to be fixed soon. Non blocking for SlackPack 0.4.0 release, but should be stated as known issue.
Comment 2 Georgi D. Sotirov 2011-03-20 12:24:20 EET
Rescheduling for SlackPack 0.5
Comment 3 Georgi D. Sotirov 2015-08-12 10:55:15 EEST
This has to be worked out for SlackPack 0.5 at latest.
Comment 4 Georgi D. Sotirov 2021-05-09 09:56:45 EEST
Fixed with changing @INC, so that modules could be properly loaded without changing script's working directory:

+use FindBin qw($RealBin);
+use lib ("$RealBin/..");

This concludes the problem reported in this bug.

bug/show-multiple.html.tmpl processed on May 02, 2024 at 09:03:29.
(provided by the Example extension).