Skip to content

Commit

Permalink
Change CVD to *only* delete signatures it manages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Clark authored and micahsnyder committed Mar 12, 2022
1 parent 1462d47 commit 20a03d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cvdupdate/cvdupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ def update(self, db: str = "") -> bool:

def clean_dbs(self):
"""
Delete all files in the database directory.
Delete cvd controlled files in the database directory.
"""
self.logger.info(f"Deleting databases...")
dbs = self.db_dir.glob('*')
dbs = self.config['dbs'].keys()
for db in dbs:
os.remove(str(db))
cvddb = str(self.db_dir) + "/" + db
os.remove(cvddb)
self.logger.info(f"Deleted: {db}")

def clean_logs(self):
Expand Down

0 comments on commit 20a03d3

Please sign in to comment.