We should take a look on what DialogCacheOutdated() does. If it shows the dialog I remember, it should just update apt's cache, not xapian one, but we also could try to add the update-apt-xapian-index command inside of DialogCacheOutdated() after "apt-get update" is run.
2013/10/10 Bruno Nova <782...@bugs.launchpad.net> > Yes, this needs to be sorted out. > > I was looking at the source code of the software-properties package and I > may have found the problem. > In the file softwareproperties/gtk/SoftwarePropertiesGtk.py there is this > method around line no. 991 (sorry if I'm not supposed to put code here): > > def on_close_button(self, widget): > """Show a dialog that a reload of the channel information is > required > only if there is no parent defined""" > if (self.modified_sourceslist == True and > self.options.no_update == False): > d = DialogCacheOutdated(self.window_main, > self.datadir) > d.run() > self.quit() > > This is where the program should ask the user if he wants to update the > cache (the Kde version should have something similar), but that is not > happening. > If I remove the "self.modified_sourceslist == True" part of the condition, > it works, so I believe that variable is not set correctly (I suppose this > variable should "tell" if the sources were changed). > I'm not an expert in Python, so it would be better if someone else checked > this. > > Now, for the Software Center, I haven't tested if it's still necessary > to re-open it. > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/782953 > > Title: > Software Center doesn't detect changes in sources until update-apt- > xapian-index is ran by cron > > To manage notifications about this bug go to: > > https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/782953/+subscriptions > -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/782953 Title: Software Center doesn't detect changes in sources until update-apt- xapian-index is ran by cron To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/782953/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs