History log of /haiku/src/apps/packageinstaller/PackageInstall.cpp
Revision Date Author Comments
# ac18a1b5 27-Apr-2015 Augustin Cavalier <waddlesplash@gmail.com>

PackageInstaller: print strerror upon failure.


# 39d7cced 18-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Ignore uninstall-error before install


# 3f5014ec 16-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Run install scripts in the correct directory

* From debugging with the Gobe and Moho installer, scripts define which
folder to run them from. The PackageInstaller is supposed to run the script
in that working directory. The parser seems to have the correct folder in
"installPath" when adding the script as PackageItem, but that code is rather
horrible. I've changed it so PackageScript items also set the path, use
InitPath() to obtain the final working directory and set it before running
the script.
* Both Moho and Gobe create the Deskbar link from that script, the folder
is rewritten in the script via ReplaceAll().
* Correctly running the script makes a bug visible: Dynamically added files
in the install location by these scripts are not removed when uninstalling
the package. When re-installing a package, it is first uninstalled and this
currently gives an error for both Moho and Gobe, since they create some
links in these scripts which never worked before. To install again, the
install folder needs to be deleted manually.
* Some cleanup along the way... sorry.


# a1b7cb62 12-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Another round of cleanup.


# aed35104 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 0368c553 20-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Remove translated debugging output. This being primarily a GUI app.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41060 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 22b60869 26-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by sil2100: Fix uninitialized variable, probably causing #6074.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36940 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4eb0cbb0 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eef95624 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36676 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f51cdb44 05-May-2010 Stephan Aßmus <superstippi@gmx.de>

Remembered the rule wrong about how many blank lines between copyright and
headers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36619 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 091440e0 05-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Jorma Karvonen: Localization of the PackageInstaller. Thanks a lot!
Contains small coding style corrections by myself. Closes ticket #5907.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36618 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a527b027 01-Apr-2010 Jérôme Duval <korli@users.berlios.de>

forgot these files as part of the previous commit


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36021 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ac18a1b54c889d6f395f2268cdeeeb1c384ac0fd 27-Apr-2015 Augustin Cavalier <waddlesplash@gmail.com>

PackageInstaller: print strerror upon failure.


# 39d7cced9f749efa7275786c2f9c4c11ff187196 18-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Ignore uninstall-error before install


# 3f5014ec86d210bd1d63f14c7640d1c68b7d8684 16-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Run install scripts in the correct directory

* From debugging with the Gobe and Moho installer, scripts define which
folder to run them from. The PackageInstaller is supposed to run the script
in that working directory. The parser seems to have the correct folder in
"installPath" when adding the script as PackageItem, but that code is rather
horrible. I've changed it so PackageScript items also set the path, use
InitPath() to obtain the final working directory and set it before running
the script.
* Both Moho and Gobe create the Deskbar link from that script, the folder
is rewritten in the script via ReplaceAll().
* Correctly running the script makes a bug visible: Dynamically added files
in the install location by these scripts are not removed when uninstalling
the package. When re-installing a package, it is first uninstalled and this
currently gives an error for both Moho and Gobe, since they create some
links in these scripts which never worked before. To install again, the
install folder needs to be deleted manually.
* Some cleanup along the way... sorry.


# a1b7cb6256be90106645da0c2d0b78e6cbb96777 12-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Another round of cleanup.


# aed35104852941f0f6f3d1dcc5338b5f337d0a3c 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 0368c5532225b3e59bc7620d0de133c073e6a6ba 20-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Remove translated debugging output. This being primarily a GUI app.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41060 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 22b608696ffab0b8f219559f3cfa2d493683af37 26-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by sil2100: Fix uninitialized variable, probably causing #6074.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36940 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4eb0cbb044cf538f18c0d252934a5bcaa33bfd34 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eef956245ee61a863221ea316e715d03773a6383 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36676 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f51cdb4436c3d03c13683d120f6c677dfca616c1 05-May-2010 Stephan Aßmus <superstippi@gmx.de>

Remembered the rule wrong about how many blank lines between copyright and
headers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36619 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 091440e0048f51f8708bece1a8aebeae3d1f2d36 05-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Jorma Karvonen: Localization of the PackageInstaller. Thanks a lot!
Contains small coding style corrections by myself. Closes ticket #5907.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36618 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a527b02780d3aed69f59643cc4a4c541b8c62cc5 01-Apr-2010 Jérôme Duval <korli@users.berlios.de>

forgot these files as part of the previous commit


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36021 a95241bf-73f2-0310-859d-f6bbb57e9c96