tis-lastpass icon

lastpass

Paquet d’installation silencieuse pour lastpass

4.133.0.437-1

  • package: tis-lastpass
  • name: lastpass
  • version: 4.133.0.437-1
  • maintainer: Amel FRADJ
  • licence: https://www.lastpass.com/legal-center/terms-of-service/business
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 50.24 Mo
  • homepage : https://www.lastpass.com/

package           : tis-lastpass
version           : 4.133.0.437-1
architecture      : all
section           : base
priority          : optional
name              : lastpass
categories        : 
maintainer        : Amel FRADJ
description       : Fills in your application's login data for you; lets you stop using the "Remember password" function
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Remplit les données de connexion de votre application pour vous ; vous permet d'arrêter d'utiliser la fonction « Mémoriser le mot de passe »
description_pl    : Wypełnia dane logowania do aplikacji; umożliwia zaprzestanie korzystania z funkcji "Zapamiętaj hasło"
description_de    : Füllt die Anmeldedaten Ihrer Anwendung für Sie aus; lässt Sie die Funktion "Passwort speichern" nicht mehr verwenden
description_es    : Rellena por ti los datos de acceso a tu aplicación; te permite dejar de utilizar la función "Recordar contraseña"
description_pt    : Preenche os dados de início de sessão da sua aplicação; permite-lhe deixar de utilizar a função "Lembrar palavra-passe
description_it    : Compila i dati di accesso all'applicazione per l'utente; consente di non utilizzare più la funzione "Ricorda password"
description_nl    : Vult de aanmeldingsgegevens van je applicatie voor je in; stelt je in staat om de functie "Wachtwoord onthouden" niet meer te gebruiken
description_ru    : Заполняет за вас данные для входа в приложение; позволяет отказаться от использования функции "Запомнить пароль"
audit_schedule    : 
editor            : 
keywords          : 
licence           : https://www.lastpass.com/legal-center/terms-of-service/business
homepage          : https://www.lastpass.com/
package_uuid      : f92ec6d1-874c-472c-91a2-738231aed1aa
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 7e11e87958243a7c43d5ffa192410c62eb97938a0a7ade1a5e092a9b23d03798
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-09-08T10:00:09.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : BYbwgFTJVgZHJALUjRkVwF/opx4PQ9xj3svCuGLkjfvOvA2V4LTomDrvjdhod3klwP3RF7FPPcbpQYZLSsZmjZp6s+ozjKq3VJwRNjW9Ro6YqBfI6fUnhPir0PjFkpBRSMoCjzuNn+hRilsT9V1imlqtK1Zbo7A/Tcpivj9ksQ2NqbpZXKkCFolfg30a70DcFpgQfyzVrsQhXqg5fKxgYD8UsFcpL+8ylnMktphOrX+p6fG2FB879UCi3ZTXK+L8F+ma2LwFGUoB0A77E9OW7rTv401uwAz61HuuV+zEqyGDGss7mSENTWcmjIYHIMLCpSrEGg38nXKPTGs/X4PovA==

# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables

    # Installing the software
    print("Installing: LastPassInstaller.msi")
    install_msi_if_needed('LastPassInstaller.msi')



# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob
import requests
import os

def get_headers(url, proxies=None):
    response = requests.head(url, allow_redirects=True, proxies=proxies)
    return response.headers

def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    url_base = "https://download.cloud.lastpass.com/windows_installer/LastPassInstaller.msi"
    latest_bin = "LastPassInstaller.msi"
    headers_file = "last_headers.txt"

    # Get current headers from the URL
    current_headers = get_headers(url_base, proxies)
    current_etag = current_headers.get('ETag')
    current_last_modified = current_headers.get('Last-Modified')

    # Load previous headers
    previous_etag = None
    previous_last_modified = None

    if os.path.isfile(headers_file):
        with open(headers_file, 'r') as f:
            previous_etag = f.readline().strip()
            previous_last_modified = f.readline().strip()

    # Check if there is an update
    download_url = url_base
    if (current_etag and current_etag != previous_etag) or (current_last_modified and current_last_modified != previous_last_modified):
        print("A new version is available. Downloading the latest version.")
        package_updated = True
    elif not os.path.isfile(latest_bin):
        print("File does not exist locally. Downloading the file.")
        package_updated = True
    else:
        print("The current version is up to date. No need to download.")

    # Downloading latest binaries if needed
    if package_updated:
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)

        # Save the current headers for future comparison
        with open(headers_file, 'w') as f:
            if current_etag:
                f.write(current_etag + '\n')
            if current_last_modified:
                f.write(current_last_modified + '\n')

    # Delete outdated binaries
    for f in glob.glob('*.msi'):
        if f != latest_bin:
            remove_file(f)

    # Update the package if there is a new version
    version = get_version_from_binary(latest_bin)
    control.set_software_version(version)
    control.save_control_to_wapt() 

6eb1f7a184608e2dec01d5b13293606db8e71c4d43e7695e9dbbf24b904c9548 : LastPassInstaller.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
d39de9ffe7b55cdb40fdbce99b6614538c2295b4622550afd606a1b9f380fae8 : WAPT/control
7e11e87958243a7c43d5ffa192410c62eb97938a0a7ade1a5e092a9b23d03798 : WAPT/icon.png
f8d3987ab571cc173be33d58200dc01503b5c766fc8cb717ecf8dd6a85fd8e46 : last_headers.txt
753fdd66071ff605dd95273302e16185b6979d5c82e4d693c5e8c5e11843ec16 : luti.json
9f93b967357473afb1c6db3c6d0d1386c715436957499eb51d008e70912fab9b : setup.py
ba82ee350e2309e829b5170c81cc8b2f3bf17c50da84cb19e981eac9512fe91a : update_package.py