~ubuntu-branches/ubuntu/utopic/hplip/utopic-proposed

« back to all changes in this revision

Viewing changes to installer/core_install.py

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-01-08 20:10:45 UTC
  • mfrom: (2.1.182 precise)
  • Revision ID: package-import@ubuntu.com-20120108201045-qbh9qngh29dziyot
Tags: 3.11.12-1
* New Upstream Release 
* Fix "Please rename the hplip packages to the printer-driver-
  convention" odyx patch - thks (Closes: #649991)
* Fix "debian/control uses hardcoded list of non-Linux architectures"
  Update Build-Depends: libudev-dev [linux-any] (Closes: #634488)
* Fix "hp-scan scans entire job and then reports inability to produce
  PDFs without reportlab" Added Depends: python-reportlab (Closes: #651240)
* Fix "hplip bug report" python handling correct (Closes: #609680)

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
            'add_user_to_group': TYPE_STRING,
252
252
            'open_mdns_port' : TYPE_LIST, # command to use to open mdns multicast port 5353
253
253
            'acl_rules' : TYPE_BOOL, # Use ACL uDEV rules (Ubuntu 9.10+)
 
254
            'libdir_path' : TYPE_STRING,
254
255
        }
255
256
 
256
257
        # components
1187
1188
                    configuration['cups-ppd-install'] = True
1188
1189
 
1189
1190
        if self.ppd_dir is not None:
1190
 
            configure_cmd += ' --with-hpppddir=%s' % self.ppd_dir
1191
 
 
1192
 
        if self.bitness == 64:
 
1191
            configure_cmd += ' --with-hpppddir=%s' % self.ppd_dir
 
1192
            
 
1193
        libdir_path = self.get_distro_ver_data('libdir_path',False)
 
1194
        if libdir_path and self.bitness == 64:
 
1195
            configure_cmd += ' --libdir=%s' % (libdir_path)
 
1196
        elif self.bitness == 64:
1193
1197
            configure_cmd += ' --libdir=/usr/lib64'
1194
1198
 
1195
1199
        configure_cmd += ' --prefix=%s' % self.install_location
1797
1801
                return True
1798
1802
 
1799
1803
            if callback is not None:
1800
 
                callback("", "Password incorrect. %d attempt(s) left." % (3-x))
 
1804
                if "not in the sudoers file" in output:
 
1805
                    callback("", "%s is not in the sudoers file. Check privileges\n" %(os.getenv('USER')) )
 
1806
                    return False
 
1807
                else:    
 
1808
                    callback("", "Password incorrect. %d attempt(s) left." % (3-x ))
 
1809
 
1801
1810
 
1802
1811
            x += 1
1803
1812
 
1933
1942
        plugin_file = os.path.join(self.plugin_path, self.plugin_name)
1934
1943
 
1935
1944
 
1936
 
        #Check whether plugin is accessible in Openprinting.org website otherwise dowload plugin from alternate location.
 
1945
        #Check whether plugin is accessible in Openprinting.org website otherwise dowload plugin from alternate location.
1937
1946
        wget = utils.which("wget")
1938
1947
        if wget:
1939
1948
            wget = os.path.join(wget, "wget")
1943
1952
            log.debug("wget returned: %d" % status)
1944
1953
 
1945
1954
        try:
1946
 
            if (status != 0):
 
1955
            if (status != 0) and 'file://' not in url:
1947
1956
                url = os.path.join(PLUGIN_FALLBACK_LOCATION, self.plugin_name)
1948
1957
                log.info("Plugin is not accessible. Trying to download it from fallback location: [%s]" % url)
1949
1958