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

Check to see if package has already been repackaged #1

Open
eckardm opened this issue Sep 26, 2019 · 0 comments
Open

Check to see if package has already been repackaged #1

eckardm opened this issue Sep 26, 2019 · 0 comments

Comments

@eckardm
Copy link
Contributor

eckardm commented Sep 26, 2019

https://github.com/djpillen/aip-repackaging/blob/73a2354269fa0bcec1f136f6e0c0d7307a118b37/aip_repackaging/repackage_aips.py#L16

A check to see if a package has already been repackaged would help if the repackage_aips.py script breaks for any reason and has to be rerun, e.g.:

if sorted(os.listdir(aip_dir)) == ["metadata.zip", "objects.zip"]:
    continue

In general, it would be nice to make the AIP repackaging scripts a little more tolerant of being stopped and restarted.

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