-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
8301856: Generated .spec file for RPM installers uninstalls desktop l…
…auncher on update Reviewed-by: almatvee
- Loading branch information
Alexey Semenyuk
committed
Nov 27, 2023
1 parent
726f854
commit 7848ed7
Showing
16 changed files
with
377 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/jdk.jpackage/linux/classes/jdk/jpackage/internal/resources/common_utils.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
file_belongs_to_single_package () | ||
{ | ||
if [ ! -e "$1" ]; then | ||
false | ||
elif [ "$package_type" = rpm ]; then | ||
test `rpm -q --whatprovides "$1" | wc -l` = 1 | ||
elif [ "$package_type" = deb ]; then | ||
test `dpkg -S "$1" | wc -l` = 1 | ||
else | ||
exit 1 | ||
fi | ||
} | ||
|
||
|
||
do_if_file_belongs_to_single_package () | ||
{ | ||
local file="$1" | ||
shift | ||
|
||
if file_belongs_to_single_package "$file"; then | ||
"$@" | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ set -e | |
|
||
|
||
package_type=deb | ||
COMMON_SCRIPTS | ||
DESKTOP_SCRIPTS | ||
LAUNCHER_AS_SERVICE_SCRIPTS | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
7848ed7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review
Issues