setup now ready for a release?
Max Bowsher
maxb@ukf.net
Mon Nov 25 13:53:00 GMT 2002
Robert Collins <rbcollins@cygwin.com> wrote:
> I've fixed the sort bug and uploaded a snapshot. Max, what letter is
> free for the antivirus to use as a shortcut?
-D --download Download from internet
-L --local-install Install from local directory
-s --site Download site
-R --root Root installation directory
-q --quiet-mode Unattended setup mode
-h --help Show this help
-r --no-replaceonreboot Disable replacing in-use files on
next
reboot.
-n --no-shortcuts Disable creation of desktop and
start
menu shortcuts
-N --no-startmenu Disable creation of start menu
shortcut
-d --no-desktop Disable creation of desktop shortcut
-D --disable-buggy-antivirus Disable known or suspected buggy
anti
virus software packages during
execution.
-A seems reasonable to me.
> Other than that, does anyone (Pavel? Gary? Max? ...) have any specific
> enhancements or bugfixes to be included. If not, once that letter is
> fixed, I'll announce to the cygwin list that they should test, or
> suffer the consequences when we cut over :].
It would be nice to get my Categories patch in.
The sources new account form didn't like my ssh public key (must it be a
version 1 rsa key? Discussion here seemed to suggest version 2.), so I doubt
I'll be up and running before you want to snapshot.
Reposted here for convenience sake.
Max.
PS: I know what one of the immediate user comments is going to be - "How do
I turn off the md5summing - it takes ages!"
#######################################################################
2002-09-22 Max Bowsher <maxb@ukf.net>
* PickView.cc (pkg_headers[]): Rename column 'Category' to 'Categories'.
* package_meta.h (packagemeta): Declare getReadableCategoryList.
* package_meta.c (packagemeta::getReadableCategoryList): Implement.
* PickPackageLine.cc (PickPackageLine::paint): Change to use
getReadableCategoryList.
Fix x2 argument to IntersectClipRect.
Index: PickPackageLine.cc
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/PickPackageLine.cc,v
retrieving revision 2.9
diff -u -p -r2.9 PickPackageLine.cc
--- PickPackageLine.cc 2002/07/13 14:00:37 2.9
+++ PickPackageLine.cc 2002/11/10 09:49:13
@@ -136,14 +136,10 @@ PickPackageLine::paint (HDC hdc, int x,
/* shows "first" category - do we want to show any? */
if (pkg.categories.size () && show_cat)
{
- String catName;
- if (pkg.categories.find ("All") == pkg.categories.begin () &&
- pkg.categories.size () > 1)
- catName = *(++pkg.categories.begin());
- else catName = * pkg.categories.begin ();
+ String catName = pkg.getReadableCategoryList();
IntersectClipRect (hdc, x + theView.headers[theView.cat_col].x, r,
x + theView.headers[theView.cat_col].x +
- theView.headers[theView.cat_col].x, rb);
+ theView.headers[theView.cat_col].width - HMARGIN / 2, rb);
TextOut (hdc, x + theView.headers[theView.cat_col].x + HMARGIN / 2,
r,
catName.cstr_oneuse(),
catName.size());
Index: PickView.cc
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/PickView.cc,v
retrieving revision 2.11
diff -u -p -r2.11 PickView.cc
--- PickView.cc 2002/11/09 13:44:52 2.11
+++ PickView.cc 2002/11/10 09:49:12
@@ -30,7 +30,7 @@ static PickView::Header pkg_headers[] =
{"New", 3, 0, 0},
{"Bin?", 4, 0, 0},
{"Src?", 4, 0, 0},
- {"Category", 8, 0, 0},
+ {"Categories", 10, 0, 0},
{"Package", 7, 0, 0},
{0, 0, 0, 0}
};
Index: package_meta.cc
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/package_meta.cc,v
retrieving revision 2.32
diff -u -p -r2.32 package_meta.cc
--- package_meta.cc 2002/11/10 03:40:36 2.32
+++ package_meta.cc 2002/11/10 09:49:12
@@ -243,6 +243,22 @@ packagemeta::add_category (String const
categories.insert (cat);
}
+String const
+packagemeta::getReadableCategoryList () const
+{
+ String result;
+ for(set<String, String::caseless>::const_iterator it =
categories.begin();
+ it != categories.end(); it++)
+ {
+ if (*it == "All")
+ continue;
+ if (result.size() > 0)
+ result += ", ";
+ result += *it;
+ }
+ return result;
+}
+
static bool
hasSDesc(packageversion const &pkg)
{
Index: package_meta.h
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/package_meta.h,v
retrieving revision 2.20
diff -u -p -r2.20 package_meta.h
--- package_meta.h 2002/11/10 03:40:36 2.20
+++ package_meta.h 2002/11/10 09:49:12
@@ -96,6 +96,7 @@ public:
*/
void add_category (String const &);
std::set <String, String::caseless> categories;
+ String const getReadableCategoryList () const;
std::set <packageversion> versions;
/* which one is installed. */
#######################################################################
More information about the Cygwin-apps
mailing list