Преглед на файлове

prepare re-enable fnmatch() once we have proper reporting

Michael Vogt преди 12 години
родител
ревизия
7e75a619f6
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      apt-pkg/cacheset.cc

+ 3 - 0
apt-pkg/cacheset.cc

@@ -312,6 +312,9 @@ bool PackageContainerInterface::FromString(PackageContainerInterface * const pci
 
 
 	if (FromGroup(pci, Cache, str, helper) == false &&
 	if (FromGroup(pci, Cache, str, helper) == false &&
 		 FromTask(pci, Cache, str, helper) == false &&
 		 FromTask(pci, Cache, str, helper) == false &&
+#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
+		 FromFnmatch(pci, Cache, str, helper) == false)
+#endif
 		 FromRegEx(pci, Cache, str, helper) == false)
 		 FromRegEx(pci, Cache, str, helper) == false)
 	{
 	{
 		helper.canNotFindPackage(pci, Cache, str);
 		helper.canNotFindPackage(pci, Cache, str);