mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
26 lines
991 B
Diff
26 lines
991 B
Diff
diff -ur repo-clean-0.1.3.orig/src/repo-clean.cpp repo-clean-0.1.3/src/repo-clean.cpp
|
|
--- repo-clean-0.1.3.orig/src/repo-clean.cpp 2009-06-03 21:19:34.000000000 +0400
|
|
+++ repo-clean-0.1.3/src/repo-clean.cpp 2010-03-27 18:08:50.000000000 +0300
|
|
@@ -105,6 +105,7 @@
|
|
#define BOOST_VERSION_SUBMINOR BOOST_VERSION % 100
|
|
|
|
std::string package_suffix = ".pkg.tar.gz";
|
|
+std::string package_suffix2 = ".pkg.tar.xz";
|
|
clean_mode mode = MODE_DRY;
|
|
move_to_existig_mode move_mode = MODE_ERROR;
|
|
messages_level msgs = MSG_VERBOSE;
|
|
@@ -637,6 +638,13 @@
|
|
{
|
|
list.push_back(source_directory + "/" + name);
|
|
}
|
|
+
|
|
+ if ((int)name.find(package_suffix2) > 0 && (name.length()
|
|
+ - name.find(package_suffix2) == package_suffix.length()))
|
|
+ {
|
|
+ list.push_back(source_directory + "/" + name);
|
|
+ }
|
|
+
|
|
}
|
|
}
|
|
}
|