Ticket #6300: mythtv-6300-only_backup_DB_if_upgradeallowed.patch

File mythtv-6300-only_backup_DB_if_upgradeallowed.patch, 728 bytes (added by sphery <mtdean@…>, 15 years ago)
  • libs/libmythtv/dbcheck.cpp

    old new  
    478478
    479479    // An upgrade is likely. We do the backup first so that
    480480    // the UI can tell the user where the backup is located.
    481     DBup->BackupDB();
     481    if (upgradeAllowed)
     482        DBup->BackupDB();
     483    else
     484        VERBOSE(VB_IMPORTANT, "Not allowed to upgrade the database. "
     485                              "Skipping backup.");
    482486
    483487    // Pop up messages, questions, warnings, et c.
    484488    switch (DBup->PromptForUpgrade("TV", upgradeAllowed,