Merge lp:~mvo/software-center/lp970627 into lp:software-center

Proposed by Michael Vogt
Status: Superseded
Proposed branch: lp:~mvo/software-center/lp970627
Merge into: lp:software-center
Diff against target: 104 lines (+28/-12) (has conflicts)
4 files modified
debian/changelog (+5/-1)
softwarecenter/expunge.py (+14/-11)
test/gtk3/test_catview.py (+8/-0)
test/test_package_info.py (+1/-0)
Text conflict in debian/changelog
Text conflict in test/gtk3/test_catview.py
To merge this branch: bzr merge lp:~mvo/software-center/lp970627
Reviewer Review Type Date Requested Status
software-store-developers Pending
Review via email: mp+108685@code.launchpad.net

This proposal has been superseded by a proposal from 2012-06-05.

Description of the change

Trivial branch that just catches any IOError in _cleanup_dir(). This shows up on errors.ubuntu.com in the software-center sub page as top 4 (top 3 actually as #2,#3 look like dupes).

To post a comment you must log in.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2012-06-01 19:14:37 +0000
+++ debian/changelog 2012-06-05 07:02:19 +0000
@@ -1,3 +1,4 @@
1<<<<<<< TREE
1software-center (5.3.0) quantal; urgency=low2software-center (5.3.0) quantal; urgency=low
23
3 [ Robert Roth ]4 [ Robert Roth ]
@@ -38,6 +39,9 @@
38 -- Michael Vogt <michael.vogt@ubuntu.com> Fri, 01 Jun 2012 19:54:38 +020039 -- Michael Vogt <michael.vogt@ubuntu.com> Fri, 01 Jun 2012 19:54:38 +0200
3940
40software-center (5.2.3) UNRELEASEDprecise-proposed; urgency=low41software-center (5.2.3) UNRELEASEDprecise-proposed; urgency=low
42=======
43software-center (5.2.3) precise-proposed; urgency=low
44>>>>>>> MERGE-SOURCE
4145
42 [ Robert Roth ]46 [ Robert Roth ]
43 * lp:~evfool/software-center/lp987801:47 * lp:~evfool/software-center/lp987801:
@@ -98,7 +102,7 @@
98 - Filtered out those exhibits that do not their packages available 102 - Filtered out those exhibits that do not their packages available
99 in the db (LP: #986563)103 in the db (LP: #986563)
100104
101 -- Michael Vogt <michael.vogt@ubuntu.com> Thu, 31 May 2012 10:07:45 +0200105 -- Michael Vogt <michael.vogt@ubuntu.com> Mon, 04 Jun 2012 08:53:25 +0200
102106
103software-center (5.2.2.2) precise-proposed; urgency=low107software-center (5.2.2.2) precise-proposed; urgency=low
104108
105109
=== modified file 'softwarecenter/expunge.py'
--- softwarecenter/expunge.py 2012-03-27 08:57:34 +0000
+++ softwarecenter/expunge.py 2012-06-05 07:02:19 +0000
@@ -55,18 +55,21 @@
55 for root, dirs, files in os.walk(path):55 for root, dirs, files in os.walk(path):
56 for f in files:56 for f in files:
57 fullpath = os.path.join(root, f)57 fullpath = os.path.join(root, f)
58 header = open(fullpath).readline().strip()58 try:
59 if not header.startswith("status:"):59 header = open(fullpath).readline().strip()
60 logging.debug(60 if not header.startswith("status:"):
61 "Skipping files with unknown header: '%s'" % f)61 logging.debug(
62 continue62 "Skipping files with unknown header: '%s'" % f)
63 if self.keep_only_http200 and header != "status: 200":63 continue
64 self._rm(fullpath)64 if self.keep_only_http200 and header != "status: 200":
65 if self.keep_time:
66 mtime = os.path.getmtime(fullpath)
67 logging.debug("mtime of '%s': '%s" % (f, mtime))
68 if (mtime + self.keep_time) < now:
69 self._rm(fullpath)65 self._rm(fullpath)
66 if self.keep_time:
67 mtime = os.path.getmtime(fullpath)
68 logging.debug("mtime of '%s': '%s" % (f, mtime))
69 if (mtime + self.keep_time) < now:
70 self._rm(fullpath)
71 except IOError as e:
72 logging.debug("ioerror in cleandir: %s" % e)
7073
71 def clean(self):74 def clean(self):
72 # go over the directories75 # go over the directories
7376
=== modified file 'test/gtk3/test_catview.py'
--- test/gtk3/test_catview.py 2012-06-01 19:14:37 +0000
+++ test/gtk3/test_catview.py 2012-06-05 07:02:19 +0000
@@ -115,7 +115,11 @@
115class RecommendationsTestCase(CatViewBaseTestCase):115class RecommendationsTestCase(CatViewBaseTestCase):
116 """The test suite for the recommendations ."""116 """The test suite for the recommendations ."""
117117
118<<<<<<< TREE
118 # FIXME: reenable119 # FIXME: reenable
120=======
121 @unittest.skip("Disabled because of race condition in test")
122>>>>>>> MERGE-SOURCE
119 @patch('softwarecenter.backend.recagent.RecommenderAgent.is_opted_in')123 @patch('softwarecenter.backend.recagent.RecommenderAgent.is_opted_in')
120 def disabled_test_recommended_for_you_opt_in_display(124 def disabled_test_recommended_for_you_opt_in_display(
121 self, mock_get_recommender_opted_in):125 self, mock_get_recommender_opted_in):
@@ -128,7 +132,11 @@
128 FramedHeaderBox.CONTENT)132 FramedHeaderBox.CONTENT)
129 self.assertTrue(self.rec_panel.opt_in_vbox.get_property("visible"))133 self.assertTrue(self.rec_panel.opt_in_vbox.get_property("visible"))
130134
135<<<<<<< TREE
131 # FIXME: reenable136 # FIXME: reenable
137=======
138 @unittest.skip("Disabled because of race condition in test")
139>>>>>>> MERGE-SOURCE
132 # patch out the agent query method to avoid making the actual server call140 # patch out the agent query method to avoid making the actual server call
133 @patch('softwarecenter.backend.recagent.RecommenderAgent.is_opted_in')141 @patch('softwarecenter.backend.recagent.RecommenderAgent.is_opted_in')
134 @patch('softwarecenter.backend.recagent.RecommenderAgent'142 @patch('softwarecenter.backend.recagent.RecommenderAgent'
135143
=== modified file 'test/test_package_info.py'
--- test/test_package_info.py 2012-01-16 14:42:49 +0000
+++ test/test_package_info.py 2012-06-05 07:02:19 +0000
@@ -65,6 +65,7 @@
65 pkginfo = self.pkginfo65 pkginfo = self.pkginfo
66 self.assertTrue(len(pkginfo.get_addons("firefox")) > 0)66 self.assertTrue(len(pkginfo.get_addons("firefox")) > 0)
6767
68 @unittest.skip("disabled due to invalid fixture data")
68 def test_removal(self):69 def test_removal(self):
69 pkginfo = self.pkginfo70 pkginfo = self.pkginfo
70 pkg = pkginfo['coreutils']71 pkg = pkginfo['coreutils']

Subscribers

People subscribed via source and target branches