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

fix: stat of non-file in ib-apt.sh #10

Closed
metaist opened this issue Mar 30, 2016 · 2 comments
Closed

fix: stat of non-file in ib-apt.sh #10

metaist opened this issue Mar 30, 2016 · 2 comments
Labels

Comments

@metaist
Copy link
Owner

metaist commented Mar 30, 2016

If /var/cache/apt/pkgcache.bin doesn't exist, tests fail:

stat: cannot stat ‘/var/cache/apt/pkgcache.bin’: No such file or directory
../src/ib-apt.sh: line 34: 1459306405 -  : syntax error: operand expected (error token is "-  ")
@metaist
Copy link
Owner Author

metaist commented Mar 30, 2016

This happens when apt-get update is interrupted during testing. I'm willing to revisit if there is another condition that triggers this error.

@metaist metaist closed this as completed Mar 30, 2016
@metaist metaist added bug and removed wontfix labels Mar 31, 2016
@metaist
Copy link
Owner Author

metaist commented Mar 31, 2016

This only requires a simple check to make sure the file exists; otherwise, just run an update to create it.

@metaist metaist reopened this Mar 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant