This file is indexed.

/usr/lib/python2.7/dist-packages/framework/subsystems/ogpsd/factory.py is in fso-frameworkd 0.10.1-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Open GPS Daemon

(C) 2008 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
(C) 2008 Jan 'Shoragan' Lübbe <jluebbe@lasnet.de>
(C) 2008 Daniel Willmann <daniel@totalueberwachung.de>
(C) 2008 Openmoko, Inc.
GPLv2 or later
"""

__version__ = "0.0.0"

import dbus

from framework.config import config
from gpsdevice import DummyDevice
from nmea import NMEADevice
from ubx import UBXDevice
from om import GTA02Device
from eten import EtenDevice
from msm import MSMDevice
from gpschannel import *

NEEDS_BUSNAMES = [ "org.freedesktop.Gypsy" ]

#----------------------------------------------------------------------------#
def factory( prefix, controller ):
#----------------------------------------------------------------------------#

    objects = []

    devname = config.getValue( "ogpsd", "device", "DummyDevice")
    channame = config.getValue( "ogpsd", "channel", "GPSChannel")
    pathname = config.getValue( "ogpsd", "path", "")
    debug = config.getValue( "ogpsd", "debug_addr", "")

    channel = globals()[channame]( pathname )
    if debug:
        channel.setDebugChannel( UDPChannel( debug ) )
    gpsdev = globals()[devname]( controller.bus, channel )
    objects.append( gpsdev )

    return objects

if __name__ == "__main__":
  bus = dbus.SystemBus()

#vim: expandtab