Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


https://bugs.freedesktop.org/show_bug.cgi?id=66754

--- Comment #3 from bavincen <bavincen.in@gmail.com> ---
(In reply to comment #0)
Some Perl knowledge is needed for this Easy Hack.

solenv/bin/modules/installer/systemactions.pm implements for example
create_directory() that can be exchanged with standard Perl's make_path()
[http://perldoc.perl.org/File/Path.html].  Similarly other functions there,
for which standard (or widely used) implementations exist.

What needs to be done (in the create_directory case; but similarly for more
functions there):

Find all Perl scripts that use create_directory:

git grep '\<create_directory\>'

Edit all those that are Perl (end with .pl or .pm) so that you add use
File::Path qw(make_path); at the top and then instead of create_directory()
calls, you use make_path().

Then, remove the create_directory and create_directory_with_privileges
declarations / definitions.

As the last step, make sure that everything builds & packages still :-)

Hi jan
can we keep that  create_directory and implement make path in it.
and remove  create_directory_with_privileges ,

need a breif explanation :) thanks

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.