Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
package-helpers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kevin
package-helpers
Commits
770c85ee
Commit
770c85ee
authored
9 years ago
by
Santiago Rodriguez
Browse files
Options
Downloads
Patches
Plain Diff
update-manager: improve trisquel version detection
Closes #12545
parent
c7392a3e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
helpers/DATA/update-manager/trisquel-versions.patch
+27
-0
27 additions, 0 deletions
helpers/DATA/update-manager/trisquel-versions.patch
helpers/make-update-manager
+4
-1
4 additions, 1 deletion
helpers/make-update-manager
with
31 additions
and
1 deletion
helpers/DATA/update-manager/trisquel-versions.patch
0 → 100644
+
27
−
0
View file @
770c85ee
--- UpdateManager/Core/utils.py 2015-10-21 04:05:26.461825091 +0200
+++ UpdateManager/Core/utils.py.new 2015-10-21 04:03:30.461825105 +0200
@@ -426,7 +426,7 @@
# From spec, first if ubuntu-desktop is installed, use that.
# Second, grab first installed one from DistUpgrade.cfg.
# Lastly, fallback to ubuntu-desktop again.
- meta_pkgs = ['ubuntu-desktop']
+ meta_pkgs = ['trisquel','trisquel-mini','trisquel-sugar']
try:
meta_pkgs.extend(sorted(_load_meta_pkg_list()))
@@ -439,13 +439,13 @@
cache_pkg = cache[meta_pkg] if meta_pkg in cache else None
if cache_pkg and cache_pkg.is_installed:
return meta_pkg
- return 'ubuntu-desktop'
+ return 'trisquel'
def get_ubuntu_flavor_name(cache=None):
""" try to guess the flavor name based on the running desktop """
pkg = get_ubuntu_flavor_package(cache=cache)
- lookup = {'ubuntustudio-desktop': 'Trisquel Studio'}
+ lookup = {'trisquel-mini': 'Trisquel Mini', 'trisquel-sugar': 'Trisquel Sugar' }
if pkg in lookup:
return lookup[pkg]
elif pkg.endswith('-desktop'):
This diff is collapsed.
Click to expand it.
helpers/make-update-manager
+
4
−
1
View file @
770c85ee
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#
VERSION
=
6
VERSION
=
7
.
./config
.
./config
...
@@ -30,6 +30,9 @@ sed '/%s base/ s/name.*/name = "Trisquel base"/' -i ./UpdateManager/Core/UpdateL
...
@@ -30,6 +30,9 @@ sed '/%s base/ s/name.*/name = "Trisquel base"/' -i ./UpdateManager/Core/UpdateL
sed
's_http://changelogs.ubuntu.com/changelogs/pool/_http://packages.trisquel.info/changelogs/pool/_'
-i
UpdateManager/Core/MyCache.py
sed
's_http://changelogs.ubuntu.com/changelogs/pool/_http://packages.trisquel.info/changelogs/pool/_'
-i
UpdateManager/Core/MyCache.py
sed
'/len(changelog) == 0/,/"later."/d'
-i
UpdateManager/Core/MyCache.py
sed
'/len(changelog) == 0/,/"later."/d'
-i
UpdateManager/Core/MyCache.py
#Closes #12545
patch
-p0
<
$DATA
/trisquel-versions.patch
changelog
"Compiled for Trisquel"
changelog
"Compiled for Trisquel"
compile
compile
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment