appstream:software-center.git
9 years agoAdd a PerfTiming class to allow finding more easily where time is spent wip/pk-optim
Vincent Untz [Mon, 19 Mar 2012 16:03:29 +0000 (17:03 +0100)]
Add a PerfTiming class to allow finding more easily where time is spent

9 years agoUse lxml to parse XML whenever possible
Vincent Untz [Mon, 19 Mar 2012 15:59:26 +0000 (16:59 +0100)]
Use lxml to parse XML whenever possible

This saves ~0.2s on startup (mostly because of the parsing of the
iso-codes data).

9 years agoCache menu parsing to avoid repeated loading of the same .menu
Vincent Untz [Mon, 19 Mar 2012 14:26:48 +0000 (15:26 +0100)]
Cache menu parsing to avoid repeated loading of the same .menu

This saves ~0.35s here on startup.

Note that we don't want to use the cache when reloading a .menu file,
but I didn't spot any such use case. If there's one, just add
use_cache=False to the call...

9 years agoPrecache newest packages when creating featured tiles
Vincent Untz [Mon, 19 Mar 2012 13:44:21 +0000 (14:44 +0100)]
Precache newest packages when creating featured tiles

This saves 1s on startup, because of the top rated apps.

9 years agoWhen updating xapian db, prefill cache for newest filter too
Vincent Untz [Mon, 19 Mar 2012 10:58:03 +0000 (11:58 +0100)]
When updating xapian db, prefill cache for newest filter too

Else, it's just too slow.

9 years agoAdd possibility to prefill cache for newest filter
Vincent Untz [Mon, 19 Mar 2012 10:54:47 +0000 (11:54 +0100)]
Add possibility to prefill cache for newest filter

9 years agoAdd a cache for packages, with newest filter
Vincent Untz [Mon, 19 Mar 2012 10:52:47 +0000 (11:52 +0100)]
Add a cache for packages, with newest filter

9 years agoRename the cache variable to prepare for other filter caches
Vincent Untz [Mon, 19 Mar 2012 10:51:12 +0000 (11:51 +0100)]
Rename the cache variable to prepare for other filter caches

9 years agoRewrite get_installed/is_installed to look at all packages for one name
Vincent Untz [Mon, 19 Mar 2012 10:50:05 +0000 (11:50 +0100)]
Rewrite get_installed/is_installed to look at all packages for one name

9 years agoCache a list of packages, not just one package per name
Vincent Untz [Mon, 19 Mar 2012 10:46:00 +0000 (11:46 +0100)]
Cache a list of packages, not just one package per name

9 years agoProperly catch extension when prefilling cache using resolve
Vincent Untz [Mon, 19 Mar 2012 10:42:07 +0000 (11:42 +0100)]
Properly catch extension when prefilling cache using resolve

9 years agoMinor cleanup/optimization
Vincent Untz [Mon, 19 Mar 2012 10:40:10 +0000 (11:40 +0100)]
Minor cleanup/optimization

Do not even look if info about a package is cached if we don't use the
cache.

9 years agoImprove get_packages_removed_on_{remove,install}
Vincent Untz [Mon, 19 Mar 2012 10:36:24 +0000 (11:36 +0100)]
Improve get_packages_removed_on_{remove,install}

Use get_installed/get_candidate instead of _get_one_package to get the
right package to simulate the transaction. Else, we might use a package
that is not installed (useless when simulating a removal), for instance.

9 years agoAlways return a string in get_origin
Vincent Untz [Mon, 19 Mar 2012 10:34:31 +0000 (11:34 +0100)]
Always return a string in get_origin

9 years agoFix caching to work only for the right filters
Vincent Untz [Mon, 19 Mar 2012 10:32:57 +0000 (11:32 +0100)]
Fix caching to work only for the right filters

We don't want to return the same result, if filters are different.

9 years agoMove PackageKit caching from _get_one_package to _get_packages
Vincent Untz [Mon, 19 Mar 2012 10:32:46 +0000 (11:32 +0100)]
Move PackageKit caching from _get_one_package to _get_packages

9 years agoMerge branch 'wip/pk-optim' of gitorious.org:appstream/software-center into wip/pk...
Vincent Untz [Mon, 19 Mar 2012 08:37:05 +0000 (09:37 +0100)]
Merge branch 'wip/pk-optim' of gitorious.org:appstream/software-center into wip/pk-optim

9 years agoDo not compute default locale again and again when parsing appdata.xml
Vincent Untz [Mon, 19 Mar 2012 08:32:49 +0000 (09:32 +0100)]
Do not compute default locale again and again when parsing appdata.xml

9 years agoIgnore tags with no content in appdata.xml
Vincent Untz [Mon, 19 Mar 2012 08:31:34 +0000 (09:31 +0100)]
Ignore tags with no content in appdata.xml

This fixes issues with cases like:
 <icon type="local"></icon>
that trigger errors.

9 years agoMerge branch 'wip/pk-optim' of gitorious.org:appstream/software-center into wip/pk...
Pavol Rusnak [Fri, 16 Mar 2012 16:19:12 +0000 (17:19 +0100)]
Merge branch 'wip/pk-optim' of gitorious.org:appstream/software-center into wip/pk-optim

9 years agoHide Software Sources menu item when it's useless
Vincent Untz [Thu, 15 Mar 2012 16:16:55 +0000 (17:16 +0100)]
Hide Software Sources menu item when it's useless

Making it non-sensitive doesn't really help and just confuse people.

9 years agoMake a log less scary when running from checkout
Vincent Untz [Thu, 15 Mar 2012 15:55:13 +0000 (16:55 +0100)]
Make a log less scary when running from checkout

9 years agoSilence exception that makes useless noise on non Debian systems
Vincent Untz [Thu, 15 Mar 2012 15:49:52 +0000 (16:49 +0100)]
Silence exception that makes useless noise on non Debian systems

9 years agoRemove warnings about non-existing LaunchpadIntegration module
Vincent Untz [Thu, 15 Mar 2012 15:41:23 +0000 (16:41 +0100)]
Remove warnings about non-existing LaunchpadIntegration module

9 years agoAvoid outputting several times the warning about catalogedtime sort
Vincent Untz [Thu, 15 Mar 2012 15:31:15 +0000 (16:31 +0100)]
Avoid outputting several times the warning about catalogedtime sort

9 years agoDo not consider source packages when prefilling the cache
Vincent Untz [Thu, 15 Mar 2012 15:14:14 +0000 (16:14 +0100)]
Do not consider source packages when prefilling the cache

9 years agoOops, fix error in previous commit
Vincent Untz [Wed, 14 Mar 2012 16:45:41 +0000 (17:45 +0100)]
Oops, fix error in previous commit

9 years agoDo not crash if appdata.xml is missing some <id> tags
Vincent Untz [Wed, 14 Mar 2012 16:39:54 +0000 (17:39 +0100)]
Do not crash if appdata.xml is missing some <id> tags

9 years agoMake sure to have a list of unique package names when prefilling cache
Vincent Untz [Wed, 14 Mar 2012 16:31:02 +0000 (17:31 +0100)]
Make sure to have a list of unique package names when prefilling cache

It's faster to not resolve twice a package. With my test setup, this
reduces the number of packages to resolve from 1324 to 553.

9 years agoAdd comment explaining why we split resolve by chunks of 100
Vincent Untz [Wed, 14 Mar 2012 16:22:36 +0000 (17:22 +0100)]
Add comment explaining why we split resolve by chunks of 100

9 years agoOptimize cache prefilling when we have a subset of packages
Vincent Untz [Wed, 14 Mar 2012 16:06:19 +0000 (17:06 +0100)]
Optimize cache prefilling when we have a subset of packages

We simply resolve those packages instead of getting the data for all
packages.

9 years agoOnly prefill the cache with packages we're interested in
Vincent Untz [Wed, 14 Mar 2012 16:06:12 +0000 (17:06 +0100)]
Only prefill the cache with packages we're interested in

9 years agoUGLY: Call prefill_cache() when starting the app
Vincent Untz [Thu, 8 Mar 2012 16:22:59 +0000 (17:22 +0100)]
UGLY: Call prefill_cache() when starting the app

This is horrible, especially as this is synchronous, but this makes the
code usable.

9 years agopackagekit: Some prefill_cache fixes
Vincent Untz [Thu, 8 Mar 2012 16:22:41 +0000 (17:22 +0100)]
packagekit: Some prefill_cache fixes

9 years agopackagekit: Add prefill_cache() method and start using it for appstream
Vincent Untz [Thu, 8 Mar 2012 16:03:46 +0000 (17:03 +0100)]
packagekit: Add prefill_cache() method and start using it for appstream

PackageKit is way to slow if we request info for each package one by
one. Instead, we can do some bigger batch queries.

This makes it possible to generate the xapian database from appdata.xml.

9 years agoMerge branch 'wip/pk-optim' of gitorious.org:appstream/software-center into wip/pk...
Pavol Rusnak [Thu, 15 Mar 2012 15:54:28 +0000 (16:54 +0100)]
Merge branch 'wip/pk-optim' of gitorious.org:appstream/software-center into wip/pk-optim

9 years agoSilence exception that makes useless noise on non Debian systems
Vincent Untz [Thu, 15 Mar 2012 15:49:52 +0000 (16:49 +0100)]
Silence exception that makes useless noise on non Debian systems

9 years agoRemove warnings about non-existing LaunchpadIntegration module
Vincent Untz [Thu, 15 Mar 2012 15:41:23 +0000 (16:41 +0100)]
Remove warnings about non-existing LaunchpadIntegration module

9 years agoMerge branch 'master' into wip/pk-optim
Pavol Rusnak [Thu, 15 Mar 2012 15:35:29 +0000 (16:35 +0100)]
Merge branch 'master' into wip/pk-optim

9 years agoAvoid outputting several times the warning about catalogedtime sort
Vincent Untz [Thu, 15 Mar 2012 15:31:15 +0000 (16:31 +0100)]
Avoid outputting several times the warning about catalogedtime sort

9 years agoDo not consider source packages when prefilling the cache
Vincent Untz [Thu, 15 Mar 2012 15:14:14 +0000 (16:14 +0100)]
Do not consider source packages when prefilling the cache

9 years agoMerge branch 'launchpad-trunk'
Michal Hrusecky [Thu, 15 Mar 2012 03:00:48 +0000 (04:00 +0100)]
Merge branch 'launchpad-trunk'

9 years agoMerge ../software-center into launchpad-trunk
Michal Hrusecky [Thu, 15 Mar 2012 03:00:26 +0000 (04:00 +0100)]
Merge ../software-center into launchpad-trunk

9 years agoadd the most recent branch from achuni into the changelog
Gary Lasker [Thu, 15 Mar 2012 02:51:42 +0000 (22:51 -0400)]
add the most recent branch from achuni into the changelog

9 years agopep8 fixes for many more files in ui.gtk3.{*}
Gary Lasker [Thu, 15 Mar 2012 02:43:20 +0000 (22:43 -0400)]
pep8 fixes for many more files in ui.gtk3.{*}

9 years ago lp:~elachuni/software-center/pep8-test-part11,
Gary Lasker [Thu, 15 Mar 2012 02:39:14 +0000 (22:39 -0400)]
  lp:~elachuni/software-center/pep8-test-part11,
  lp:~elachuni/software-center/pep8-test-part12:
    ui.gtk3.{views, widgets, session, panes}

9 years agolp:~elachuni/software-center/pep8-test-part10,
Gary Lasker [Thu, 15 Mar 2012 02:35:20 +0000 (22:35 -0400)]
lp:~elachuni/software-center/pep8-test-part10,
lp:~elachuni/software-center/pep8-test-part11:
- pep8 fixes for many more files in
ui.gtk3.{views, widgets, session}

9 years ago lp:~elachuni/software-center/pep8-test-part9,
Gary Lasker [Thu, 15 Mar 2012 02:24:56 +0000 (22:24 -0400)]
  lp:~elachuni/software-center/pep8-test-part9,
  lp:~elachuni/software-center/pep8-test-part10:

9 years ago* lp:~mvo/software-center/small-sso-fixes:
Gary Lasker [Thu, 15 Mar 2012 02:18:24 +0000 (22:18 -0400)]
* lp:~mvo/software-center/small-sso-fixes:
  - fix the clear_credentials() call if a token is no
    longer valid

9 years agoMade all files in softwarecenter.ui.gtk3.dialogs pass the pep8 test.
Anthony Lenton [Thu, 15 Mar 2012 01:39:09 +0000 (22:39 -0300)]
Made all files in softwarecenter.ui.gtk3.dialogs pass the pep8 test.

9 years agoMade all files in softwarecenter.ui.gtk3.models pass the pep8 test.
Anthony Lenton [Thu, 15 Mar 2012 01:32:28 +0000 (22:32 -0300)]
Made all files in softwarecenter.ui.gtk3.models pass the pep8 test.

9 years agoRemoved the use of a backslash.
Anthony Lenton [Thu, 15 Mar 2012 01:00:27 +0000 (22:00 -0300)]
Removed the use of a backslash.

9 years agoMade the remaining files in softwarecenter.ui.gtk3.panes pass the pep8 test.
Anthony Lenton [Thu, 15 Mar 2012 00:52:10 +0000 (21:52 -0300)]
Made the remaining files in softwarecenter.ui.gtk3.panes pass the pep8 test.

9 years agoMade all files from softwarecenter.ui.gtk3.session and a few from softwarecenter...
Anthony Lenton [Thu, 15 Mar 2012 00:16:03 +0000 (21:16 -0300)]
Made all files from softwarecenter.ui.gtk3.session and a few from softwarecenter.ui.gtk3.panes pass the pep8 test.

9 years agoMade softwarecenter.ui.gtk3.views.appdetailsview pass the pep8 test.
Anthony Lenton [Wed, 14 Mar 2012 23:44:30 +0000 (20:44 -0300)]
Made softwarecenter.ui.gtk3.views.appdetailsview pass the pep8 test.

9 years agoMerge branch 'launchpad-trunk'
Michal Hrusecky [Wed, 14 Mar 2012 23:00:29 +0000 (00:00 +0100)]
Merge branch 'launchpad-trunk'

9 years agoMerge ../software-center into launchpad-trunk
Michal Hrusecky [Wed, 14 Mar 2012 23:00:09 +0000 (00:00 +0100)]
Merge ../software-center into launchpad-trunk

9 years agolp:~elachuni/software-center/pep8-test-part8,
Kiwinote [Wed, 14 Mar 2012 21:53:20 +0000 (21:53 +0000)]
lp:~elachuni/software-center/pep8-test-part8,
lp:~elachuni/software-center/pep8-test-part9:
- pep8 fixes for many more files in ui.gtk3.{views, widgets}

9 years agoremove the reviews-specific run_against_rnr_testing_env.sh, just use the more general...
Gary Lasker [Wed, 14 Mar 2012 20:08:24 +0000 (16:08 -0400)]
remove the reviews-specific run_against_rnr_testing_env.sh, just use the more general run_against_testing_env.sh instead

9 years agojust add a new test script for running against the testing servers for both rnr and...
Gary Lasker [Wed, 14 Mar 2012 19:53:59 +0000 (15:53 -0400)]
just add a new test script for running against the testing servers for both rnr and recommendations

9 years agoMerge branch 'launchpad-trunk'
Michal Hrusecky [Wed, 14 Mar 2012 19:00:35 +0000 (20:00 +0100)]
Merge branch 'launchpad-trunk'

9 years agoMerge ../software-center into launchpad-trunk
Michal Hrusecky [Wed, 14 Mar 2012 19:00:12 +0000 (20:00 +0100)]
Merge ../software-center into launchpad-trunk

9 years agoOops, fix error in previous commit
Vincent Untz [Wed, 14 Mar 2012 16:45:41 +0000 (17:45 +0100)]
Oops, fix error in previous commit

9 years agoDo not crash if appdata.xml is missing some <id> tags
Vincent Untz [Wed, 14 Mar 2012 16:39:54 +0000 (17:39 +0100)]
Do not crash if appdata.xml is missing some <id> tags

9 years agoMake sure to have a list of unique package names when prefilling cache
Vincent Untz [Wed, 14 Mar 2012 16:31:02 +0000 (17:31 +0100)]
Make sure to have a list of unique package names when prefilling cache

It's faster to not resolve twice a package. With my test setup, this
reduces the number of packages to resolve from 1324 to 553.

9 years agoMade most files in softwarecenter.ui.gtk3.views pass the pep8 test.
Anthony Lenton [Wed, 14 Mar 2012 16:34:56 +0000 (13:34 -0300)]
Made most files in softwarecenter.ui.gtk3.views pass the pep8 test.

9 years agoMerge branch 'master' into wip/pk-optim
Pavol Rusnak [Wed, 14 Mar 2012 16:31:36 +0000 (17:31 +0100)]
Merge branch 'master' into wip/pk-optim

9 years agoAdd comment explaining why we split resolve by chunks of 100
Vincent Untz [Wed, 14 Mar 2012 16:22:36 +0000 (17:22 +0100)]
Add comment explaining why we split resolve by chunks of 100

9 years agoOptimize cache prefilling when we have a subset of packages
Vincent Untz [Wed, 14 Mar 2012 16:06:19 +0000 (17:06 +0100)]
Optimize cache prefilling when we have a subset of packages

We simply resolve those packages instead of getting the data for all
packages.

9 years agoOnly prefill the cache with packages we're interested in
Vincent Untz [Wed, 14 Mar 2012 16:06:12 +0000 (17:06 +0100)]
Only prefill the cache with packages we're interested in

9 years agorun_against_rnr_testing_env.sh: add missing "/"
Michael Vogt [Wed, 14 Mar 2012 16:04:47 +0000 (17:04 +0100)]
run_against_rnr_testing_env.sh: add missing "/"

9 years agomodernize based on nessitas feedback
Michael Vogt [Wed, 14 Mar 2012 15:53:32 +0000 (16:53 +0100)]
modernize based on nessitas feedback

9 years agoensure that the dbus knows about the dictionary signature in clear_credentials, fix...
Michael Vogt [Wed, 14 Mar 2012 15:45:47 +0000 (16:45 +0100)]
ensure that the dbus knows about the dictionary signature in clear_credentials, fix crash in _on_credentials_error()

9 years agoMerge branch 'launchpad-trunk'
Michal Hrusecky [Wed, 14 Mar 2012 15:00:37 +0000 (16:00 +0100)]
Merge branch 'launchpad-trunk'

9 years agoMerge ../software-center into launchpad-trunk
Michal Hrusecky [Wed, 14 Mar 2012 15:00:14 +0000 (16:00 +0100)]
Merge ../software-center into launchpad-trunk

9 years ago* lp:~elachuni/software-center/unify-ussoc-envvar:
Michael Vogt [Wed, 14 Mar 2012 12:49:21 +0000 (13:49 +0100)]
* lp:~elachuni/software-center/unify-ussoc-envvar:
  - fix USSOC_SERVICE_URL env variable

9 years agomerged lp:~elachuni/software-center/pep8-test-part8
Michael Vogt [Wed, 14 Mar 2012 12:47:09 +0000 (13:47 +0100)]
merged lp:~elachuni/software-center/pep8-test-part8

9 years ago* lp:~kelemeng/software-center/bug953812: (LP: #953812)
Michael Vogt [Wed, 14 Mar 2012 12:45:23 +0000 (13:45 +0100)]
* lp:~kelemeng/software-center/bug953812: (LP: #953812)
  - Translate review sorting criteria
  - Fix the Recommendation spinner text translations

9 years agoPut back run_against_rnr_testing_env.sh.
Anthony Lenton [Tue, 13 Mar 2012 18:48:10 +0000 (15:48 -0300)]
Put back run_against_rnr_testing_env.sh.

9 years agoUnified conventions between what ussoc and USC expect from the USSOC_SERVICE_URL...
Anthony Lenton [Tue, 13 Mar 2012 18:35:14 +0000 (15:35 -0300)]
Unified conventions between what ussoc and USC expect from the USSOC_SERVICE_URL environment variable.

9 years agoAll files in softwarecenter.ui.gtk3.widgets are now pep8-compliant.
Anthony Lenton [Tue, 13 Mar 2012 17:13:27 +0000 (14:13 -0300)]
All files in softwarecenter.ui.gtk3.widgets are now pep8-compliant.

9 years agoFix the Recommendation spinner text translations
Gabor Kelemen [Tue, 13 Mar 2012 08:29:20 +0000 (09:29 +0100)]
Fix the Recommendation spinner text translations

9 years agoTranslate review sorting criteria
Gabor Kelemen [Tue, 13 Mar 2012 08:28:22 +0000 (09:28 +0100)]
Translate review sorting criteria

9 years agoMerge branch 'launchpad-trunk'
Michal Hrusecky [Mon, 12 Mar 2012 19:00:43 +0000 (20:00 +0100)]
Merge branch 'launchpad-trunk'

9 years agoMerge ../software-center into launchpad-trunk
Michal Hrusecky [Mon, 12 Mar 2012 19:00:18 +0000 (20:00 +0100)]
Merge ../software-center into launchpad-trunk

9 years ago lp:~elachuni/software-center/pep8-test-part6,
Kiwinote [Mon, 12 Mar 2012 17:55:51 +0000 (17:55 +0000)]
  lp:~elachuni/software-center/pep8-test-part6,
  lp:~elachuni/software-center/pep8-test-part7:

9 years agoMade the pep8 test pass on three more files in softwarecenter/ui/gtk3/widgets/
Anthony Lenton [Mon, 12 Mar 2012 12:43:52 +0000 (09:43 -0300)]
Made the pep8 test pass on three more files in softwarecenter/ui/gtk3/widgets/

9 years agoMerge branch 'launchpad-trunk'
Michal Hrusecky [Mon, 12 Mar 2012 03:00:39 +0000 (04:00 +0100)]
Merge branch 'launchpad-trunk'

9 years agoMerge ../software-center into launchpad-trunk
Michal Hrusecky [Mon, 12 Mar 2012 03:00:20 +0000 (04:00 +0100)]
Merge ../software-center into launchpad-trunk

9 years ago* lp:~elachuni/software-center/pep8-test-part5,
Gary Lasker [Sun, 11 Mar 2012 23:53:00 +0000 (19:53 -0400)]
* lp:~elachuni/software-center/pep8-test-part5,
  lp:~elachuni/software-center/pep8-test-part6:
  - pep8 fixes for many more files in ui.gtk3.widgets

9 years agomerge lp:~elachuni/software-center/pep8-test-part6, many thanks Anthony
Gary Lasker [Sun, 11 Mar 2012 23:51:14 +0000 (19:51 -0400)]
merge lp:~elachuni/software-center/pep8-test-part6, many thanks Anthony

9 years agoMade two more files in softwarecenter/ui/gtk3/widgets/ pass the pep8 test.
Anthony Lenton [Sat, 10 Mar 2012 02:05:59 +0000 (23:05 -0300)]
Made two more files in softwarecenter/ui/gtk3/widgets/ pass the pep8 test.

9 years agoMerge branch 'launchpad-trunk'
Michal Hrusecky [Fri, 9 Mar 2012 23:00:43 +0000 (00:00 +0100)]
Merge branch 'launchpad-trunk'

9 years agoMerge ../software-center into launchpad-trunk
Michal Hrusecky [Fri, 9 Mar 2012 23:00:12 +0000 (00:00 +0100)]
Merge ../software-center into launchpad-trunk

9 years ago* lp:~elachuni/software-center/pep8-test-part5:
Gary Lasker [Fri, 9 Mar 2012 22:01:48 +0000 (17:01 -0500)]
* lp:~elachuni/software-center/pep8-test-part5:
  - Make the pep8 test pass on 6 more files in ui.gtk3.widgets

9 years agomerged lp:~elachuni/software-center/pep8-test-part5, many thanks Anthony
Gary Lasker [Fri, 9 Mar 2012 21:59:07 +0000 (16:59 -0500)]
merged lp:~elachuni/software-center/pep8-test-part5, many thanks Anthony

9 years agoMade the pep8 test pass on 6 more files in ui.gtk3.widgets.
Anthony Lenton [Fri, 9 Mar 2012 12:50:38 +0000 (09:50 -0300)]
Made the pep8 test pass on 6 more files in ui.gtk3.widgets.

9 years agoMerge branch 'launchpad-trunk'
Michal Hrusecky [Fri, 9 Mar 2012 11:00:27 +0000 (12:00 +0100)]
Merge branch 'launchpad-trunk'

9 years agoMerge ../software-center into launchpad-trunk
Michal Hrusecky [Fri, 9 Mar 2012 11:00:10 +0000 (12:00 +0100)]
Merge ../software-center into launchpad-trunk

9 years agoreleasing version 5.1.12
Michael Vogt [Fri, 9 Mar 2012 08:14:36 +0000 (09:14 +0100)]
releasing version 5.1.12