Просмотр исходного кода

dpkg: Move pkg_infodb_remove_file() before pkg_infodb_update_file()

Guillem Jover лет назад: 14
Родитель
Сommit
7860b58a85
1 измененных файлов с 9 добавлено и 9 удалено
  1. 9 9
      src/processarc.c

+ 9 - 9
src/processarc.c

@@ -210,6 +210,15 @@ enqueue_conflictor(struct pkginfo *pkg, struct pkginfo *pkg_fixbyrm)
   conflictor[cflict_index++] = pkg_fixbyrm;
 }
 
+static void
+pkg_infodb_remove_file(const char *filename, const char *filetype)
+{
+  if (unlink(filename))
+    ohshite(_("unable to delete control info file `%.250s'"), filename);
+
+  debug(dbg_scripts, "removal_bulk info unlinked %s", filename);
+}
+
 static struct match_node *match_head = NULL;
 
 static void
@@ -319,15 +328,6 @@ pkg_infodb_update(struct pkginfo *pkg, char *cidir, char *cidirrest)
   dir_sync_path(pkgadmindir());
 }
 
-static void
-pkg_infodb_remove_file(const char *filename, const char *filetype)
-{
-  if (unlink(filename))
-    ohshite(_("unable to delete control info file `%.250s'"), filename);
-
-  debug(dbg_scripts, "removal_bulk info unlinked %s", filename);
-}
-
 static enum parsedbflags
 parsedb_force_flags(void)
 {