Bug 117 - regpkg requires absolute path to the package file
Summary: regpkg requires absolute path to the package file
Status: RESOLVED FIXED
Alias: None
Product: SlackPack
Classification: Web
Component: Utilities (show other bugs)
Version: 0.3.2
Hardware: All All
: Low (P4) minor (vote)
Target Milestone: 0.5
Deadline: 2019-12-31
Assignee: Georgi D. Sotirov
QA Contact: Administrator
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-28 13:22 EEST by Georgi D. Sotirov
Modified: 2021-05-09 10:00 EEST (History)
1 user (show)

See Also:
My Bug ID:
My description:
My date:
My choice:
My selection: ---
gdsotirov: blocking-sp-0.4-
gdsotirov: blocking-sp-0.5+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.html.tmpl processed on Apr 16, 2024 at 06:28:55.
(provided by the Example extension).