]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/upgrade.h
properly format multiline error messages
[apt.git] / apt-pkg / upgrade.h
index 18b6aac7b03fedf7a25864c7538f3fc29b3545da..71dbb4fd3619fbb7fb04e7a1242605204ac3f9dc 100644 (file)
@@ -24,18 +24,12 @@ namespace APT {
          FORBID_INSTALL_NEW_PACKAGES = 2,
         ALLOW_EVERYTHING = 0
       };
-#if APT_PKG_ABI >= 413
       bool Upgrade(pkgDepCache &Cache, int UpgradeMode, OpProgress * const Progress = NULL);
-#else
-      bool Upgrade(pkgDepCache &Cache, int UpgradeMode);
-      bool Upgrade(pkgDepCache &Cache, int UpgradeMode, OpProgress * const Progress);
-#endif
    }
 }
 
-// please use APT::Upgrade::Upgrade() instead
-APT_DEPRECATED bool pkgDistUpgrade(pkgDepCache &Cache);
-APT_DEPRECATED bool pkgAllUpgrade(pkgDepCache &Cache);
+APT_DEPRECATED_MSG("Use APT::Upgrade::Upgrade() instead") bool pkgDistUpgrade(pkgDepCache &Cache);
+APT_DEPRECATED_MSG("Use APT::Upgrade::Upgrade() instead") bool pkgAllUpgrade(pkgDepCache &Cache);
 
 bool pkgMinimizeUpgrade(pkgDepCache &Cache);
 #endif