~ubuntu-branches/ubuntu/trusty/packagekit/trusty-proposed

« back to all changes in this revision

Viewing changes to src/pk-network-stack-unix.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Heinlein
  • Date: 2013-08-27 23:45:23 UTC
  • mfrom: (56.1.26 sid)
  • Revision ID: package-import@ubuntu.com-20130827234523-hm4d57mvdf5x17cg
Tags: 0.8.10-2ubuntu1
* Merge from Debian unstable. Remaining changes:
  + Client tools alternatively depend on or recommend aptdaemon's
    compatibility layer
  + packagekit provides the virtual packagekit-system-interface
  + Add break on packagekit-plugin-click <= 0.3
  + Fix default url in vendor-ubuntu.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
        gboolean online = FALSE;
124
124
        PkNetworkEnum state = PK_NETWORK_ENUM_ONLINE;
125
125
 
 
126
        /* no warning if the file is missing, like if no /proc */
 
127
        if (!g_file_test (PK_NETWORK_PROC_ROUTE, G_FILE_TEST_EXISTS)) {
 
128
                goto out;
 
129
        }
 
130
 
126
131
        /* hack, because netlink is teh suck */
127
132
        ret = g_file_get_contents (PK_NETWORK_PROC_ROUTE, &contents, NULL, &error);
128
133
        if (!ret) {