diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-04-03 19:28:37 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-04-03 19:28:37 +0300 |
commit | c7b5cb2dc4a884aa080a23e1ba0772047ca566e4 (patch) | |
tree | 710679c17cdbf644c8362cc3a3e9f775909bcfb7 /rpmdb | |
parent | 1a269ccd3cc3be1bb5763f23621c63b5ac199c92 (diff) | |
download | librpm-tizen-c7b5cb2dc4a884aa080a23e1ba0772047ca566e4.tar.gz librpm-tizen-c7b5cb2dc4a884aa080a23e1ba0772047ca566e4.tar.bz2 librpm-tizen-c7b5cb2dc4a884aa080a23e1ba0772047ca566e4.zip |
Remove ancient db1->db3 conversion cruft
Diffstat (limited to 'rpmdb')
-rw-r--r-- | rpmdb/rpmdb.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c index 01ae88a97..d272bb30f 100644 --- a/rpmdb/rpmdb.c +++ b/rpmdb/rpmdb.c @@ -3405,15 +3405,6 @@ static int rpmdbMoveDatabase(const char * prefix, rc = rpmdbRemoveDatabase(prefix, newdbpath, _newdbapi); - - /* Remove /etc/rpm/macros.db1 configuration file if db3 rebuilt. */ - if (rc == 0 && _newdbapi == 1 && _olddbapi == 3) { - const char * mdb1 = "/etc/rpm/macros.db1"; - struct stat st; - if (!stat(mdb1, &st) && S_ISREG(st.st_mode) && !unlink(mdb1)) - rpmlog(RPMLOG_DEBUG, - "removing %s after successful db3 rebuild.\n", mdb1); - } #endif return rc; } |