tis-lastpass icon

lastpass

Paquet d’installation silencieuse pour lastpass

4.132.0.418-1

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

package           : tis-lastpass
version           : 4.132.0.418-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      : cbd661e1-7030-4012-baf9-6fc6d62d0fc6
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 7e11e87958243a7c43d5ffa192410c62eb97938a0a7ade1a5e092a9b23d03798
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : qUBXydVPALQvEsf/C+VkLIm7Ymzu/1YKJwG0aq/8Ai8WOpUDb0AMqDPx2Xz1ZmD+FncgudgngGvyH17dCPlFDdVOhLdT1evzqvZx4daCmvii3W0e2XiwIufotag7DvqGNvEjlMSyDinRcSdHxzFCvfwhxVOs91OC9behUlxCFt94X0dCPvcr/kdptwbWs4O6JyZ5WGX3lfEBZg131WsJDKcWNnjph4YqAK4azXOYphvCmpNsqqJR92JTY974AnCqtLPX6Kgq0Ym0ZlcihfK1SnLxKM8PpxZO/hINT8EjK1o4G0lrH57A+LY+8pz2zb4DLR8rkufMiBGJpcCQge9Y7A==
signature_date    : 2024-08-06T09:00:18.287241
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

# -*- 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() 

a79e71f06105471cd84d62de3b016c10dd23be9c6aa9d8eae7f84faebd6533c8 : LastPassInstaller.msi
9f93b967357473afb1c6db3c6d0d1386c715436957499eb51d008e70912fab9b : setup.py
ba82ee350e2309e829b5170c81cc8b2f3bf17c50da84cb19e981eac9512fe91a : update_package.py
5b544e75ec3960deaa01ef533dc9a5fa6129405c691b523bcf12264d9942ed9a : last_headers.txt
7e11e87958243a7c43d5ffa192410c62eb97938a0a7ade1a5e092a9b23d03798 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
2fdb9aef9e30257ccfc3293a9927b42d90c94bb37f1df9464c0c3e4fd052203a : luti.json
4f2fc1776bab2a647955a5a7c02d4e44abd3ff97548700f6e7cc75df8105be8b : WAPT/control