Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apt Update #2

Open
renewedbullet opened this issue Jul 31, 2024 · 0 comments
Open

Apt Update #2

renewedbullet opened this issue Jul 31, 2024 · 0 comments

Comments

@renewedbullet
Copy link

add apt update to pull gpsd info from repo's,this can cause issues with initial install if the user hasnt already done an apt update it will say installing, installed and never actually install.

I believe the bottom code should be able to do a apt update on initial setup then do the install.

if 'installed' not in aptRes.stdout:
logging.info('[gpsdeasy] GPSd not installed, trying now. This may take up to 5 minutes just let me run')
if is_connected():
subprocess.run(['apt', 'update'])
subprocess.run(['apt', 'install', '-y', 'gpsd', 'gpsd-clients'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant