#32 `make sync-repositories` fails with previous files
Opened 2 years ago by abitrolly. Modified 2 years ago

...
epel-7                 Extracting /tmp/mdapi-x_bewshg/79414ba9f1ec37d7b2a37423a77b950965833e7bbea4e49ed47e3b345b387792-primary.sqlite.bz2 to /tmp/mdapi-x_bewshg/epel-7_primary.sqlite
epel-7                 Indexing file: /tmp/mdapi-x_bewshg/epel-7_primary.sqlite
epel-7                 Creating diff for file: repositories/epel-7_primary.sqlite
Traceback (most recent call last):
  File "/home/anatoli/f/fedora-packages-static/bin/fetch-repository-dbs.py", line 402, in <module>
    main()
  File "/home/anatoli/f/fedora-packages-static/bin/fetch-repository-dbs.py", line 398, in main
    handle(repo, args.target_dir, db_removed)
  File "/home/anatoli/f/fedora-packages-static/bin/fetch-repository-dbs.py", line 281, in handle
    gen_db_diff(name, tempdb, destfile, db_removed)
  File "/home/anatoli/f/fedora-packages-static/bin/fetch-repository-dbs.py", line 147, in gen_db_diff
    conn.execute(
sqlite3.OperationalError: no such column: old.packages.rpm_sourcerpm_name
make: *** [Makefile:29: sync-repositories] Error 1                                                             

You will need to delete all of the previous html and database files from version 1.0.0 -> 2.0.0+.

I guess writing migrations is not feasible for this small project. I am still interested to generate diagrams for DB structures to see how they change. Polishing the tooling will take some time https://github.com/yakshaveinc/linux/issues/29

Login to comment on this ticket.

Metadata